コード例 #1
0
        public EfCorePersistence(IEfcoreDatabaseService efcoreDatabaseService)
        {
            _efcoreDatabaseService = efcoreDatabaseService;

            #region -Initialize Concrete Implementations of IRepository-
            //The concrete implementations need to be initialized improve this logic
            _addresses = new AddressRepository(_efcoreDatabaseService);

            _customers = new CustomerRepository(_efcoreDatabaseService);

            _categories = new CategoryRepository(_efcoreDatabaseService);

            _productcategories = new ProductCategoryRepository(_efcoreDatabaseService);

            _productimages = new ProductImageRepository(_efcoreDatabaseService);

            _products = new ProductRepository(_efcoreDatabaseService);

            _sellers = new SellerRepository(_efcoreDatabaseService);

            _users = new UserRepository(_efcoreDatabaseService);
            #endregion
        }
コード例 #2
0
 public ProductCategoryRepository(IEfcoreDatabaseService efcoreDatabase)
 {
     _efcoreDatabase = efcoreDatabase;
 }
コード例 #3
0
 public SellerRepository(IEfcoreDatabaseService efcoredatabase)
 {
     efcoredatabase = _efcoredatabase;
 }
コード例 #4
0
 public AddressRepository(IEfcoreDatabaseService efcoreDatabase)
 {
     _efcoreDatabase = efcoreDatabase;
 }
コード例 #5
0
 public CustomerRepository(IEfcoreDatabaseService efcoreDatabase)
 {
     _efcoreDatabase = efcoreDatabase;
 }
コード例 #6
0
 public ProductImageRepository(IEfcoreDatabaseService efcoreDatabase)
 {
     _efcoreDatabase = efcoreDatabase;
 }
コード例 #7
0
 public UserRepository(IEfcoreDatabaseService efcoredatabase)
 {
     _efcoredatabase = efcoredatabase;
 }