Język

RelationalQueryModelVisitor.ShouldApplyDefiningQuery Metoda

Definicja

Ustal, czy podczas wykonywania zapytań dotyczących typu jednostki docelowej należy zastosować zapytanie definiujące zapytanie.

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

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

Dotyczy