示例#1
0
 public async Task <User> FindUserById(Guid id) =>
 await _context.Users.AsNoTracking().Where(UserQuery.FindById(id)).FirstOrDefaultAsync();
示例#2
0
 public async Task <User> GetUserById(Guid id) =>
 await _context.Users.SingleOrDefaultAsync(UserQuery.FindById(id));