/// <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="shouldBuffer"> True if the query should be buffered. </param>
 public RelationalCompiledQueryCacheKey(
     CompiledQueryCacheKey compiledQueryCacheKey, bool useRelationalNulls, bool shouldBuffer)
 {
     _compiledQueryCacheKey = compiledQueryCacheKey;
     _useRelationalNulls    = useRelationalNulls;
     _shouldBuffer          = shouldBuffer;
 }
示例#2
0
 /// <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>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public RelationalCompiledQueryCacheKey(
     CompiledQueryCacheKey compiledQueryCacheKey, bool useRelationalNulls)
 {
     _compiledQueryCacheKey = compiledQueryCacheKey;
     _useRelationalNulls    = useRelationalNulls;
 }