Ejemplo n.º 1
0
        public SalesHistoryRepository()
        {
            this._connString = SqlHelper.GetConnectionString();
            this._slhStore   = new List <SalesHistory>();

            this._itmRepository = new ItemRepository();
            this._untRepository = new UnitOfSalesRepository();

            this.PopulateData();
        }
Ejemplo n.º 2
0
        public ItemRepository()
        {
            this._connString = SqlHelper.GetConnectionString();
            this._itmStore   = new List <Item>();

            this._ctgRepository = new CategoryRepository();
            this._stkRepository = new StockRepository();
            this._uopRepository = new UnitOfPurchaseRepository();
            this._uosRepository = new UnitOfSalesRepository();

            this.PopulateData();
        }