private ContentRepository CreateRepository(IDatabaseUnitOfWork unitOfWork, out ContentTypeRepository contentTypeRepository)
 {
     var templateRepository = new TemplateRepository(unitOfWork, NullCacheProvider.Current);
     contentTypeRepository = new ContentTypeRepository(unitOfWork, NullCacheProvider.Current, templateRepository);
     var repository = new ContentRepository(unitOfWork, NullCacheProvider.Current, contentTypeRepository, templateRepository);
     return repository;
 }
Ejemplo n.º 2
0
		internal virtual IUserRepository CreateUserRepository(IDatabaseUnitOfWork uow)
        {
            return new UserRepository(
                uow,
                NullCacheProvider.Current,
                CreateUserTypeRepository(uow));
        }
 private MemberRepository CreateRepository(IDatabaseUnitOfWork unitOfWork, out MemberTypeRepository memberTypeRepository)
 {
     memberTypeRepository = new MemberTypeRepository(unitOfWork, NullCacheProvider.Current);
     var tagRepo = new TagsRepository(unitOfWork, NullCacheProvider.Current);
     var repository = new MemberRepository(unitOfWork, NullCacheProvider.Current, memberTypeRepository, tagRepo);
     return repository;
 }
Ejemplo n.º 4
0
 public virtual IMediaRepository CreateMediaRepository(IDatabaseUnitOfWork uow)
 {
     return new MediaRepository(
         uow,
         RuntimeCacheProvider.Current,
         CreateMediaTypeRepository(uow));
 }
Ejemplo n.º 5
0
 public virtual IContentTypeRepository CreateContentTypeRepository(IDatabaseUnitOfWork uow)
 {
     return new ContentTypeRepository(
         uow,
         InMemoryCacheProvider.Current,
         new TemplateRepository(uow, NullCacheProvider.Current));
 }
Ejemplo n.º 6
0
 public virtual IDictionaryRepository CreateDictionaryRepository(IDatabaseUnitOfWork uow)
 {
     return new DictionaryRepository(
         uow,
         InMemoryCacheProvider.Current,
         CreateLanguageRepository(uow));
 }
Ejemplo n.º 7
0
 public virtual IRelationRepository CreateRelationRepository(IDatabaseUnitOfWork uow)
 {
     return new RelationRepository(
         uow,
         NullCacheProvider.Current,
         CreateRelationTypeRepository(uow));
 }
Ejemplo n.º 8
0
 public virtual IMediaRepository CreateMediaRepository(IDatabaseUnitOfWork uow)
 {
     return new MediaRepository(
         uow,
         RuntimeCacheProvider.Current,
         CreateMediaTypeRepository(uow)) { EnsureUniqueNaming = Umbraco.Core.Configuration.UmbracoSettings.EnsureUniqueNaming };
 }
Ejemplo n.º 9
0
 public virtual IMediaRepository CreateMediaRepository(IDatabaseUnitOfWork uow)
 {
     return new MediaRepository(
         uow,
         _disableAllCache ? (IRepositoryCacheProvider)NullCacheProvider.Current : RuntimeCacheProvider.Current,
         CreateMediaTypeRepository(uow),
         CreateTagsRepository(uow)) { EnsureUniqueNaming = _settings.Content.EnsureUniqueNaming };
 }
Ejemplo n.º 10
0
 public virtual IContentRepository CreateContentRepository(IDatabaseUnitOfWork uow)
 {
     return new ContentRepository(
         uow,
         _disableAllCache ? (IRepositoryCacheProvider)NullCacheProvider.Current : RuntimeCacheProvider.Current,
         CreateContentTypeRepository(uow),
         CreateTemplateRepository(uow)) { EnsureUniqueNaming = Umbraco.Core.Configuration.UmbracoSettings.EnsureUniqueNaming };
 }
Ejemplo n.º 11
0
 public virtual IContentRepository CreateContentRepository(IDatabaseUnitOfWork uow)
 {
     return new ContentRepository(
         uow,
         RuntimeCacheProvider.Current,
         CreateContentTypeRepository(uow),
         CreateTemplateRepository(uow));
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Creates an instance of the warehouse catalog repository.
 /// </summary>
 /// <param name="uow">
 /// The database unit of work.
 /// </param>
 /// <returns>
 /// The <see cref="IWarehouseCatalogRepository"/>.
 /// </returns>
 internal virtual IWarehouseCatalogRepository CreateWarehouseCatalogRepository(IDatabaseUnitOfWork uow)
 {
     return(new WarehouseCatalogRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, _logger, _sqlSyntax));
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Returns an instance of the <see cref="IShipmentRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IShipmentRepository"/>.
 /// </returns>
 internal virtual IShipmentRepository CreateShipmentRepository(IDatabaseUnitOfWork uow)
 {
     return new ShipmentRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, CreateOrderLineItemRepository(uow));
 }
Ejemplo n.º 14
0
 protected LineItemRepositoryBase(IDatabaseUnitOfWork work, IRuntimeCacheProvider cache)
     : base(work, cache)
 {
 }
Ejemplo n.º 15
0
 /// <summary>
 /// The create entity collection repository.
 /// </summary>
 /// <param name="uow">
 /// The database unit of work.
 /// </param>
 /// <returns>
 /// The <see cref="IEntityCollectionRepository"/>.
 /// </returns>
 internal virtual IEntityCollectionRepository CreateEntityCollectionRepository(IDatabaseUnitOfWork uow)
 {
     return(new EntityCollectionRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, _logger, _sqlSyntax));
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Returns an instance of the <see cref="IShipRateTierRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IShipRateTierRepository"/>.
 /// </returns>
 internal virtual IShipRateTierRepository CreateShipRateTierRepository(IDatabaseUnitOfWork uow)
 {
     return(new ShipRateTierRepository(uow, _nullCacheProvider, _logger, _sqlSyntax));
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Returns an instance of the <see cref="IShipCountryRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <param name="storeSettingService">
 /// The store Setting Service.
 /// </param>
 /// <returns>
 /// The <see cref="IShipCountryRepository"/>.
 /// </returns>
 internal virtual IShipCountryRepository CreateShipCountryRepository(IDatabaseUnitOfWork uow, IStoreSettingService storeSettingService)
 {
     return(new ShipCountryRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, storeSettingService, _logger, _sqlSyntax));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DetachedContentTypeRepository"/> class.
 /// </summary>
 /// <param name="work">
 /// The work.
 /// </param>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="sqlSyntax">
 /// The SQL Syntax.
 /// </param>
 public DetachedContentTypeRepository(IDatabaseUnitOfWork work, ILogger logger, ISqlSyntaxProvider sqlSyntax)
     : base(work, logger, sqlSyntax)
 {
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Returns an instance of the <see cref="IAnonymousCustomerRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IAnonymousCustomerRepository"/>.
 /// </returns>
 internal virtual IAnonymousCustomerRepository CreateAnonymousCustomerRepository(IDatabaseUnitOfWork uow)
 {
     return new AnonymousCustomerRepository(uow, _nullCacheProvider);
 }
Ejemplo n.º 20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GatewayProviderRepository"/> class.
 /// </summary>
 /// <param name="work">
 /// The work.
 /// </param>
 /// <param name="cache">
 /// The cache.
 /// </param>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="sqlSyntax">
 /// The SQL syntax.
 /// </param>
 public GatewayProviderRepository(IDatabaseUnitOfWork work, CacheHelper cache, ILogger logger, ISqlSyntaxProvider sqlSyntax)
     : base(work, cache, logger, sqlSyntax)
 {
 }
Ejemplo n.º 21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PagedRepositoryBase{TEntity,TDto}"/> class.
 /// </summary>
 /// <param name="work">
 /// The work.
 /// </param>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="sqlSyntax">
 /// The SQL Syntax.
 /// </param>
 protected PagedRepositoryBase(IDatabaseUnitOfWork work, ILogger logger, ISqlSyntaxProvider sqlSyntax)
     : base(work, logger, sqlSyntax)
 {
 }
Ejemplo n.º 22
0
 public EntityRepository(IDatabaseUnitOfWork work)
 {
     _work = work;
 }
Ejemplo n.º 23
0
        private static User CreateAndCommitUserWithGroup(IUserRepository repository, IUserGroupRepository userGroupRepository, IDatabaseUnitOfWork unitOfWork)
        {
            var user = MockedUser.CreateUser();

            repository.AddOrUpdate(user);
            unitOfWork.Commit();

            var group = MockedUserGroup.CreateUserGroup();

            userGroupRepository.AddOrUpdateGroupWithUsers(@group, new[] { user.Id });
            unitOfWork.Commit();

            return(user);
        }
 private ServerRegistrationRepository CreateRepositor(IDatabaseUnitOfWork unitOfWork)
 {
     return(new ServerRegistrationRepository(unitOfWork, NullCacheProvider.Current));
 }
Ejemplo n.º 25
0
 /// <summary>
 /// Returns an instance of the <see cref="IShipRateTierRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IShipRateTierRepository"/>.
 /// </returns>
 internal virtual IShipRateTierRepository CreateShipRateTierRepository(IDatabaseUnitOfWork uow)
 {
     return new ShipRateTierRepository(uow, _nullCacheProvider);
 }
Ejemplo n.º 26
0
 private MemberTypeRepository CreateRepository(IDatabaseUnitOfWork unitOfWork)
 {
     return(new MemberTypeRepository(unitOfWork, NullCacheProvider.Current));
 }
Ejemplo n.º 27
0
 /// <summary>
 /// Returns an instance of the <see cref="ITaxMethodRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="ITaxMethodRepository"/>.
 /// </returns>
 internal virtual ITaxMethodRepository CreateTaxMethodRepository(IDatabaseUnitOfWork uow)
 {
     return new TaxMethodRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider);
 }
Ejemplo n.º 28
0
 /// <summary>
 /// Returns an instance of the <see cref="IShipmentStatusRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The unit of work.
 /// </param>
 /// <returns>
 /// The <see cref="IShipmentStatusRepository"/>.
 /// </returns>
 internal virtual IShipmentStatusRepository CreateShipmentStatusRepository(IDatabaseUnitOfWork uow)
 {
     return(new ShipmentStatusRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, _logger, _sqlSyntax));
 }
Ejemplo n.º 29
0
 private UserRepository CreateRepository(IDatabaseUnitOfWork unitOfWork, out UserTypeRepository userTypeRepository)
 {
     userTypeRepository = new UserTypeRepository(unitOfWork, NullCacheProvider.Current);
     var repository = new UserRepository(unitOfWork, NullCacheProvider.Current, userTypeRepository);
     return repository;
 }
Ejemplo n.º 30
0
 /// <summary>
 /// Returns an instance of the <see cref="IProductVariantRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IProductVariantRepository"/>.
 /// </returns>
 internal virtual IProductVariantRepository CreateProductVariantRepository(IDatabaseUnitOfWork uow)
 {
     return(new ProductVariantRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, _logger, _sqlSyntax));
 }
Ejemplo n.º 31
0
 public BakimDomain(IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _bakimRep     = serviceProvider.GetService <IBakimRepository>();
     _kullaniciRep = serviceProvider.GetService <IKullaniciRepository>();
     _uow          = serviceProvider.GetService <IDatabaseUnitOfWork>();
 }
Ejemplo n.º 32
0
 /// <summary>
 /// Gets an instance of the <see cref="IOrderLineItemRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IOrderLineItemRepository"/>.
 /// </returns>
 internal virtual IOrderLineItemRepository CreateOrderLineItemRepository(IDatabaseUnitOfWork uow)
 {
     return(new OrderLineItemRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, _logger, _sqlSyntax));
 }
Ejemplo n.º 33
0
 /// <summary>
 /// The create digital media repository.
 /// </summary>
 /// <param name="uow">
 /// The <see cref="IDatabaseUnitOfWork"/>.
 /// </param>
 /// <returns>
 /// The <see cref="IDigitalMediaRepository"/>.
 /// </returns>
 internal virtual IDigitalMediaRepository CreateDigitalMediaRepository(IDatabaseUnitOfWork uow)
 {
     return new DigitalMediaRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider);
 }
Ejemplo n.º 34
0
 public LockedRepository(Transaction transaction, IDatabaseUnitOfWork unitOfWork, TRepository repository)
 {
     Transaction = transaction;
     UnitOfWork  = unitOfWork;
     Repository  = repository;
 }
Ejemplo n.º 35
0
 /// <summary>
 /// The create gateway provider repository.
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IGatewayProviderRepository"/>.
 /// </returns>
 internal virtual IGatewayProviderRepository CreateGatewayProviderRepository(IDatabaseUnitOfWork uow)
 {
     return new GatewayProviderRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider);
 }
Ejemplo n.º 36
0
 /// <summary>
 /// Returns and instance of the <see cref="INotificationMessageRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="INotificationMessageRepository"/>.
 /// </returns>
 internal virtual INotificationMessageRepository CreateNotificationMessageRepository(IDatabaseUnitOfWork uow)
 {
     return new NotificationMessageRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider);
 }
Ejemplo n.º 37
0
 /// <summary>
 /// Returns and instance of the <see cref="INotificationMessageRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="INotificationMessageRepository"/>.
 /// </returns>
 internal virtual INotificationMessageRepository CreateNotificationMessageRepository(IDatabaseUnitOfWork uow)
 {
     return(new NotificationMessageRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, _logger, _sqlSyntax));
 }
Ejemplo n.º 38
0
 /// <summary>
 /// Returns an instance of the <see cref="IProductVariantRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IProductVariantRepository"/>.
 /// </returns>
 internal virtual IProductVariantRepository CreateProductVariantRepository(IDatabaseUnitOfWork uow)
 {
     return new ProductVariantRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider);
 }
 protected RecycleBinRepository(IDatabaseUnitOfWork work, CacheHelper cache, ILogger logger, ISqlSyntaxProvider sqlSyntax, IContentSection contentSection)
     : base(work, cache, logger, sqlSyntax, contentSection)
 {
 }
Ejemplo n.º 40
0
 /// <summary>
 /// Returns an instance of the <see cref="ITaxMethodRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="ITaxMethodRepository"/>.
 /// </returns>
 internal virtual ITaxMethodRepository CreateTaxMethodRepository(IDatabaseUnitOfWork uow)
 {
     return(new TaxMethodRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, _logger, _sqlSyntax));
 }
Ejemplo n.º 41
0
 /// <summary>
 /// Returns an instance of the <see cref="ICustomerRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="ICustomerRepository"/>.
 /// </returns>
 internal virtual ICustomerRepository CreateCustomerRepository(IDatabaseUnitOfWork uow)
 {
     return new CustomerRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, CreateCustomerAddressRepository(uow));
 }
Ejemplo n.º 42
0
 internal virtual ServerRegistrationRepository CreateServerRegistrationRepository(IDatabaseUnitOfWork uow)
 {
     return(new ServerRegistrationRepository(
                uow,
                NullCacheProvider.Current));
 }
Ejemplo n.º 43
0
 /// <summary>
 /// The create entity collection repository.
 /// </summary>
 /// <param name="uow">
 /// The database unit of work.
 /// </param>
 /// <returns>
 /// The <see cref="IEntityCollectionRepository"/>.
 /// </returns>
 internal virtual IEntityCollectionRepository CreateEntityCollectionRepository(IDatabaseUnitOfWork uow)
 {
     return new EntityCollectionRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider);
 }
Ejemplo n.º 44
0
 internal virtual IUserTypeRepository CreateUserTypeRepository(IDatabaseUnitOfWork uow)
 {
     return(new UserTypeRepository(
                uow,
                NullCacheProvider.Current));
 }
Ejemplo n.º 45
0
 /// <summary>
 /// Returns an instance of the <see cref="IItemCacheRepository"/>
 /// </summary>
 /// <param name="uow">The <see cref="IDatabaseUnitOfWork"/></param>
 /// <returns>The <see cref="IItemCacheRepository"/></returns>        
 internal virtual IItemCacheRepository CreateItemCacheRepository(IDatabaseUnitOfWork uow)
 {
     return new ItemCacheRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, CreateCacheLineItemRespository(uow));
 }
Ejemplo n.º 46
0
 internal virtual IEntityRepository CreateEntityRepository(IDatabaseUnitOfWork uow)
 {
     return(new EntityRepository(uow));
 }
Ejemplo n.º 47
0
 /// <summary>
 /// The create redeemed repository.
 /// </summary>
 /// <param name="uow">
 /// The database unit of work.
 /// </param>
 /// <returns>
 /// The <see cref="IOfferRedeemedRepository"/>.
 /// </returns>
 internal virtual IOfferRedeemedRepository CreateOfferRedeemedRepository(IDatabaseUnitOfWork uow)
 {
     return new OfferRedeemedRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider);
 }
Ejemplo n.º 48
0
 internal virtual RecycleBinRepository CreateRecycleBinRepository(IDatabaseUnitOfWork uow)
 {
     return(new RecycleBinRepository(uow));
 }
Ejemplo n.º 49
0
 /// <summary>
 /// Returns an instance of the <see cref="IShipCountryRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <param name="storeSettingService">
 /// The store Setting Service.
 /// </param>
 /// <returns>
 /// The <see cref="IShipCountryRepository"/>.
 /// </returns>
 internal virtual IShipCountryRepository CreateShipCountryRepository(IDatabaseUnitOfWork uow, IStoreSettingService storeSettingService)
 {
     return new ShipCountryRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, storeSettingService);
 }
Ejemplo n.º 50
0
 public virtual IDataTypeDefinitionRepository CreateDataTypeDefinitionRepository(IDatabaseUnitOfWork uow)
 {
     return(new DataTypeDefinitionRepository(
                uow,
                NullCacheProvider.Current));
 }
Ejemplo n.º 51
0
 /// <summary>
 /// Returns an instance of the <see cref="IShipmentStatusRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The unit of work.
 /// </param>
 /// <returns>
 /// The <see cref="IShipmentStatusRepository"/>.
 /// </returns>
 internal virtual IShipmentStatusRepository CreateShipmentStatusRepository(IDatabaseUnitOfWork uow)
 {
     return new ShipmentStatusRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider);
 }
Ejemplo n.º 52
0
 public virtual ILanguageRepository CreateLanguageRepository(IDatabaseUnitOfWork uow)
 {
     return(new LanguageRepository(
                uow,
                InMemoryCacheProvider.Current));
 }
Ejemplo n.º 53
0
 /// <summary>
 /// Returns an instance of the <see cref="IStoreSettingRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IStoreSettingRepository"/>.
 /// </returns>
 internal virtual IStoreSettingRepository CreateStoreSettingRepository(IDatabaseUnitOfWork uow)
 {
     return new StoreSettingRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider);
 }
Ejemplo n.º 54
0
 public virtual IMediaTypeRepository CreateMediaTypeRepository(IDatabaseUnitOfWork uow)
 {
     return(new MediaTypeRepository(
                uow,
                InMemoryCacheProvider.Current));
 }
Ejemplo n.º 55
0
 /// <summary>
 /// Returns an instance of the <see cref="IWarehouseRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IWarehouseRepository"/>.
 /// </returns>
 internal virtual IWarehouseRepository CreateWarehouseRepository(IDatabaseUnitOfWork uow)
 {
     return new WarehouseRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider, this.CreateWarehouseCatalogRepository(uow));
 }
Ejemplo n.º 56
0
 public virtual IRelationTypeRepository CreateRelationTypeRepository(IDatabaseUnitOfWork uow)
 {
     return(new RelationTypeRepository(
                uow,
                NullCacheProvider.Current));
 }
Ejemplo n.º 57
0
 /// <summary>
 /// Returns an instance of the <see cref="IAppliedPaymentRepository"/>
 /// </summary>
 /// <param name="uow">
 /// The database unit of work
 /// </param>
 /// <returns>
 /// The <see cref="IAppliedPaymentRepository"/>.
 /// </returns>
 internal virtual IAppliedPaymentRepository CreateAppliedPaymentRepository(IDatabaseUnitOfWork uow)
 {
     return new AppliedPaymentRepository(uow, _disableAllCache ? _nullCacheProvider : _runtimeCacheProvider);
 }
Ejemplo n.º 58
0
 public virtual ITemplateRepository CreateTemplateRepository(IDatabaseUnitOfWork uow)
 {
     return(new TemplateRepository(uow, RuntimeCacheProvider.Current));
 }
Ejemplo n.º 59
0
 public RecycleBinRepository(IDatabaseUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WarehouseCatalogRepository"/> class.
 /// </summary>
 /// <param name="work">
 /// The work.
 /// </param>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="sqlSyntax">
 /// The SQL Syntax.
 /// </param>
 public WarehouseCatalogRepository(IDatabaseUnitOfWork work, ILogger logger, ISqlSyntaxProvider sqlSyntax)
     : base(work, logger, sqlSyntax)
 {
 }