示例#1
0
 public CachingCommandDefinition(
     DbCommandDefinition commandDefinition,
     CommandTreeFacts commandTreeFacts,
     CacheTransactionInterceptor cacheTransactionInterceptor,
     DbCachingPolicy policy)
 {
     _commandDefintion            = commandDefinition;
     _commandTreeFacts            = commandTreeFacts;
     _cacheTransactionInterceptor = cacheTransactionInterceptor;
     _policy = policy;
 }
示例#2
0
        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();
 }