Esempio n. 1
0
 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>();
     }
 }
Esempio n. 2
0
 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>();
     }
 }