Пример #1
0
 public T GetId(int id)
 {
     return(_context.Set <T>().Find(id));
 }
Пример #2
0
 public BaseRepositoryAsync(MarketListContext marketListContext)
 {
     Context = marketListContext;
     DbSet   = Context.Set <T>();
 }
Пример #3
0
 public BaseRepository(MarketListContext context)
 {
     _context = context;
     _enumer  = context.Set <T>().AsQueryable();
 }