public CachingCommandDefinition( DbCommandDefinition commandDefinition, CommandTreeFacts commandTreeFacts, CacheTransactionInterceptor cacheTransactionInterceptor, DbCachingPolicy policy) { _commandDefintion = commandDefinition; _commandTreeFacts = commandTreeFacts; _cacheTransactionInterceptor = cacheTransactionInterceptor; _policy = policy; }
public CachingCommand( DbCommand command, CommandTreeFacts commandTreeFacts, CacheTransactionInterceptor cacheTransactionInterceptor, DbCachingPolicy policy) { Guard.NotNull(command, nameof(command)); Guard.NotNull(commandTreeFacts, nameof(commandTreeFacts)); Guard.NotNull(cacheTransactionInterceptor, nameof(cacheTransactionInterceptor)); _command = command; _commandTreeFacts = commandTreeFacts; _cacheTransactionInterceptor = cacheTransactionInterceptor; _policy = policy; }
public CachingProviderServices(DbProviderServices providerServices, CacheTransactionInterceptor cacheTransactionInterceptor, DbCachingPolicy policy = null) { _providerServices = providerServices; _cacheTransactionInterceptor = cacheTransactionInterceptor; _policy = policy ?? new DbCachingPolicy(); }