RelationalQueryModelVisitor.ShouldApplyDefiningQuery Metoda

Definicja

Ustal, czy zapytanie definiujące ma być stosowane podczas wykonywania zapytań względem typu jednostki docelowej.

public override bool ShouldApplyDefiningQuery (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Remotion.Linq.Clauses.IQuerySource querySource);
override this.ShouldApplyDefiningQuery : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Remotion.Linq.Clauses.IQuerySource -> bool
Public Overrides Function ShouldApplyDefiningQuery (entityType As IEntityType, querySource As IQuerySource) As Boolean

Parametry

entityType
IEntityType

Typ jednostki docelowej.

querySource
Remotion.Linq.Clauses.IQuerySource

Źródło zapytania docelowego.

Zwraca

true, jeśli typ docelowy powinien mieć zastosowane zapytanie definiujące.

Dotyczy