Пример #1
0
 public GenericRepository(SmartGroceryDataContext context)
 {
     this._context = context;
     this._dbSet   = _context.Set <T>();
 }
Пример #2
0
 public GenericRepository()
 {
     this._context = new SmartGroceryDataContext();
     this._dbSet   = _context.Set <T>();
 }