/// <summary> /// Initializes a new instance of the <see cref="RelationalCompiledQueryCacheKey" /> class. /// </summary> /// <param name="compiledQueryCacheKey"> The non-relational cache key. </param> /// <param name="useRelationalNulls"> True to use relational null logic. </param> /// <param name="querySplittingBehavior"> <see cref="QuerySplittingBehavior"/> to use when loading related collections. </param> /// <param name="shouldBuffer"> <see langword="true"/> if the query should be buffered. </param> public RelationalCompiledQueryCacheKey( CompiledQueryCacheKey compiledQueryCacheKey, bool useRelationalNulls, QuerySplittingBehavior?querySplittingBehavior, bool shouldBuffer) { _compiledQueryCacheKey = compiledQueryCacheKey; _useRelationalNulls = useRelationalNulls; _querySplittingBehavior = querySplittingBehavior; _shouldBuffer = shouldBuffer; }
/// <summary> /// Called by a derived class constructor when implementing the <see cref="Clone" /> method. /// </summary> /// <param name="copyFrom">The instance that is being cloned.</param> protected RelationalOptionsExtension(RelationalOptionsExtension copyFrom) { _connectionString = copyFrom._connectionString; _connection = copyFrom._connection; _commandTimeout = copyFrom._commandTimeout; _maxBatchSize = copyFrom._maxBatchSize; _minBatchSize = copyFrom._minBatchSize; _useRelationalNulls = copyFrom._useRelationalNulls; _querySplittingBehavior = copyFrom._querySplittingBehavior; _migrationsAssembly = copyFrom._migrationsAssembly; _migrationsHistoryTableName = copyFrom._migrationsHistoryTableName; _migrationsHistoryTableSchema = copyFrom._migrationsHistoryTableSchema; _executionStrategyFactory = copyFrom._executionStrategyFactory; }
/// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public SelectExpressionProjectionApplyingExpressionVisitor(QuerySplittingBehavior?querySplittingBehavior) { _querySplittingBehavior = querySplittingBehavior ?? QuerySplittingBehavior.SingleQuery; }