public Repository(ProjectManagerContext context)
 {
     Db    = context;
     DbSet = Db.Set <TEntity>();
 }
 public Repository(ProjectManagerContext context)
 {
     _context = context;
     _set     = _context.Set <ET>();
 }
示例#3
0
 public async Task <List <T> > GetAll()
 {
     return(await _db.Set <T>().AsNoTracking().ToListAsync());
 }
 public Repository(ProjectManagerContext context)
 {
     Context  = context;
     Entities = Context.Set <TEntity>();
 }