I have the following select:
var allUsers = await dbContext.AppUsers
.Where(u => allUserIds.Contains(u.IdentityUsersId))
.Include(u => u.Following)
.Select(u => new
{
u.Name,
u.Email,
u.Phone!.FormattedNumber,
u.Following
})
.ToListAsync();
It returns an object where the 3rd property is named FormattedNumber
. Is there a way to have the property named PhoneNumber
?