示例#1
0
 public IQueryable <Fis> CariFisleri(int id)
 {
     return(_context.Set <Fis>().Where(x => x.CariId == id)
            .Include(x => x.FisOzelliks)
            .Include(x => x.User)
            .Include(x => x.Cari)
            .AsQueryable());
 }
示例#2
0
 public IQueryable <Cari> GetCarisForList()
 {
     return(_context.Set <Cari>()
            .Include(x => x.CariEMails)
            .Include(x => x.CariTelefons)
            .Include(x => x.CariCeps)
            .Include(x => x.CariAdreslers).ThenInclude(x => x.Il)
            .Include(x => x.CariAdreslers).ThenInclude(x => x.Ilce)
            .Include(x => x.CariAdreslers)
            .AsQueryable());
 }
示例#3
0
 public async Task<User> GetUserByIdAsync(int id)
 {
     return await _context.Set<User>().Where(x => x.Id == id).FirstOrDefaultAsync();
 }