public Repository(SchoolContext context)
 {
     db    = context;
     dbSet = context.Set <T>();
 }
Example #2
0
 public Repository(SchoolContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }