Пример #1
0
 public EntityServiceBase(
     IEntityRepository <T> entityRepository,
     IStorageServiceFactory storageServiceFactory,
     bool useSoftDelete = true)
 {
     _entityRepository = entityRepository;
     _storageService   = storageServiceFactory.CreateStorageService <T>();
     _useSoftDelete    = useSoftDelete;
 }
 public EntityServiceBase(IEntityRepository <T> entityRepository, IStorageServiceFactory storageServiceFactory)
 {
     _entityRepository = entityRepository;
     _storageService   = storageServiceFactory.CreateStorageService <T>();
 }