コード例 #1
0
       public PaymentMethodRepository()
       {
           var entityCnxStringBuilder = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString;
           var shopkeeperMasterContext = new ShopKeeperMasterEntities(entityCnxStringBuilder); 
           _uoWork = new UnitOfWork(shopkeeperMasterContext);
           _repository = new ShopkeeperRepository<PaymentMethod>(_uoWork);
	   }
コード例 #2
0
ファイル: BankRepository.cs プロジェクト: AdiSha1995/shopmaxi
        public BankRepository()
        {
            var conn = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString;
            var shopkeeperStoreContext = new ShopKeeperMasterEntities(conn);

            _uoWork     = new UnitOfWork(shopkeeperStoreContext);
            _repository = new ShopkeeperRepository <Bank>(_uoWork);
        }
コード例 #3
0
        public SubscriptionPackageRepository()
        {
            var entityCnxStringBuilder = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString;

            _db         = new ShopKeeperMasterEntities(entityCnxStringBuilder);
            _uoWork     = new UnitOfWork(_db);
            _repository = new ShopkeeperRepository <SubscriptionPackage>(_uoWork);
        }
コード例 #4
0
        public StoreSubscriptionHistoryRepository()
        {
            var entityCnxStringBuilder  = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString;
            var shopkeeperMasterContext = new ShopKeeperMasterEntities(entityCnxStringBuilder);

            _uoWork     = new UnitOfWork(shopkeeperMasterContext);
            _repository = new ShopkeeperRepository <StoreSubscriptionHistory>(_uoWork);
        }
コード例 #5
0
        public MessageRepository()
        {
            var entityCnxStringBuilder = ConfigurationManager.ConnectionStrings["ShopKeeperMasterEntities"].ConnectionString;

            _db = new ShopKeeperMasterEntities(entityCnxStringBuilder);
        }