public PaymentMethodRepository() { var entityCnxStringBuilder = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString; var shopkeeperMasterContext = new ShopKeeperMasterEntities(entityCnxStringBuilder); _uoWork = new UnitOfWork(shopkeeperMasterContext); _repository = new ShopkeeperRepository<PaymentMethod>(_uoWork); }
public SubscriptionRepository() { var conn = ConfigurationManager.ConnectionStrings["ShopKeeperStoreEntities"].ConnectionString; var shopkeeperMasterContext = new ShopKeeperStoreEntities(conn); _uoWork = new UnitOfWork(shopkeeperMasterContext); _repository = new ShopkeeperRepository <StoreItem>(_uoWork); }
public BankRepository() { var conn = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString; var shopkeeperStoreContext = new ShopKeeperMasterEntities(conn); _uoWork = new UnitOfWork(shopkeeperStoreContext); _repository = new ShopkeeperRepository <Bank>(_uoWork); }
public SubscriptionPackageRepository() { var entityCnxStringBuilder = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString; _db = new ShopKeeperMasterEntities(entityCnxStringBuilder); _uoWork = new UnitOfWork(_db); _repository = new ShopkeeperRepository <SubscriptionPackage>(_uoWork); }
public StoreSubscriptionHistoryRepository() { var entityCnxStringBuilder = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString; var shopkeeperMasterContext = new ShopKeeperMasterEntities(entityCnxStringBuilder); _uoWork = new UnitOfWork(shopkeeperMasterContext); _repository = new ShopkeeperRepository <StoreSubscriptionHistory>(_uoWork); }
public SubscriptionSettingRepository(string connectionStringSetting) { //var entityCnxStringBuilder = ConfigurationManager.ConnectionStrings["ShopKeeperStoreEntities"].ConnectionString; var shopkeeperMasterContext = new ShopKeeperStoreEntities(connectionStringSetting); _uoWork = new UnitOfWork(shopkeeperMasterContext); _repository = new ShopkeeperRepository <SubscriptionSetting>(_uoWork); }
public RegisterRepository() { var connectionString = ConfigurationManager.ConnectionStrings["ShopKeeperStoreEntities"].ConnectionString; var storeSetting = new SessionHelpers().GetStoreInfo(); if (storeSetting != null && storeSetting.StoreId > 0) { connectionString = storeSetting.EntityConnectionString; } var shopkeeperStoreContext = new ShopKeeperStoreEntities(connectionString); _uoWork = new UnitOfWork(shopkeeperStoreContext); _repository = new ShopkeeperRepository<Register>(_uoWork); }
public SaleTransactionRepository() { var connectionString = ConfigurationManager.ConnectionStrings["ShopKeeperStoreEntities"].ConnectionString; var storeSetting = new SessionHelpers().GetStoreInfo(); if (storeSetting != null && storeSetting.StoreId > 0) { connectionString = storeSetting.EntityConnectionString; } _db = new ShopKeeperStoreEntities(connectionString); _uoWork = new UnitOfWork(_db); _repository = new ShopkeeperRepository<SaleTransaction>(_uoWork); }
public ShopkeeperService(IShopkeeperRepository repository) : base(repository) { }