public PurchaseReportForm() { InitializeComponent(); purchaseRepo = new GenericRepository <Purchase>(); smartGroceryDataContext = new SmartGroceryDataContext(); purchase = new Purchase(); }
public GenericRepository(SmartGroceryDataContext context) { this._context = context; this._dbSet = _context.Set <T>(); }
public GenericRepository() { this._context = new SmartGroceryDataContext(); this._dbSet = _context.Set <T>(); }