public RepositoryReadFactory(IOptionsSnapshot <SDBSettings> SDBSettings) { _SDBSettings = SDBSettings; if (_createRepository?.ConfigDictionary.Count == 0) { _createRepository.AddConfig <IUserRepositoryRead, UserRepositoryRead>(); _createRepository.AddConfig <IRoleRepositoryRead, RoleRepositoryRead>(); _createRepository.AddConfig <IMenuRepositoryRead, MenuRepositoryRead>(); _createRepository.AddConfig <IDepartmentRepositoryRead, DepartmentRepositoryRead>(); } }
public RepositoryReadFactory(IOptionsSnapshot <SDBSettings> SDBSettings) { _SDBSettings = SDBSettings; if (_createRepository?.ConfigDictionary.Count == 0) { _createRepository.AddConfig <IUserRepositoryRead, UserRepositoryRead>(); _createRepository.AddConfig <IAddressRepository, AddressRepository>(); _createRepository.AddConfig <ICommodityRepository, CommodityRepository>(); _createRepository.AddConfig <IPaymentRepository, PaymentRepository>(); _createRepository.AddConfig <ISecKillOrderRepository, SecKillOrderRepository>(); } }