public PaymentMethodRepository() { var entityCnxStringBuilder = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString; var shopkeeperMasterContext = new ShopKeeperMasterEntities(entityCnxStringBuilder); _uoWork = new UnitOfWork(shopkeeperMasterContext); _repository = new ShopkeeperRepository<PaymentMethod>(_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 MessageRepository() { var entityCnxStringBuilder = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString; _db = new ShopKeeperMasterEntities(entityCnxStringBuilder); }