コード例 #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;
        }