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 }
public ProductCategoryRepository(IEfcoreDatabaseService efcoreDatabase) { _efcoreDatabase = efcoreDatabase; }
public SellerRepository(IEfcoreDatabaseService efcoredatabase) { efcoredatabase = _efcoredatabase; }
public AddressRepository(IEfcoreDatabaseService efcoreDatabase) { _efcoreDatabase = efcoreDatabase; }
public CustomerRepository(IEfcoreDatabaseService efcoreDatabase) { _efcoreDatabase = efcoreDatabase; }
public ProductImageRepository(IEfcoreDatabaseService efcoreDatabase) { _efcoreDatabase = efcoreDatabase; }
public UserRepository(IEfcoreDatabaseService efcoredatabase) { _efcoredatabase = efcoredatabase; }