Table of Contents

Struct RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey

Namespace
Microsoft.EntityFrameworkCore.Query
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

A key that uniquely identifies a query. This is used to store and lookup compiled versions of a query in a cache.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

protected readonly struct RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey : IEquatable<RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey>
Implements
Inherited Members

Constructors

RelationalCompiledQueryCacheKey(CompiledQueryCacheKey, bool, QuerySplittingBehavior?, bool)

public RelationalCompiledQueryCacheKey(CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey compiledQueryCacheKey, bool useRelationalNulls, QuerySplittingBehavior? querySplittingBehavior, bool shouldBuffer)

Parameters

compiledQueryCacheKey CompiledQueryCacheKey

The non-relational cache key.

useRelationalNulls bool

True to use relational null logic.

querySplittingBehavior QuerySplittingBehavior?

QuerySplittingBehavior to use when loading related collections.

shouldBuffer bool

true if the query should be buffered.

Methods

Equals(RelationalCompiledQueryCacheKey)

public bool Equals(RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey other)

Parameters

other RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int