public PurchaseReportForm()
        {
            InitializeComponent();

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