Example #1
0
 public Repository(FoodContext context)
 {
     this.context = context;
     entities     = context.Set <TEntity>();
 }
Example #2
0
 public BaseRepository(FoodContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }