Пример #1
0
 public GenericRepository(SiennDbContext context)
 {
     Context  = context;
     Entities = context.Set <TEntity>();
 }
Пример #2
0
 protected GenericRepository(SiennDbContext context)
 {
     Context   = context;
     _entities = context.Set <TEntity>();
 }