Sdílet prostřednictvím


IConventionEntityTypeBuilder.CanSetDefiningQuery Metoda

Definice

Upozornění

Use InMemoryEntityTypeBuilderExtensions.CanSetInMemoryQuery

Vrátí hodnotu označující, zda lze daný definující dotaz nastavit z aktuálního zdroje konfigurace.

public bool CanSetDefiningQuery (System.Linq.Expressions.LambdaExpression query, bool fromDataAnnotation = false);
[System.Obsolete("Use InMemoryEntityTypeBuilderExtensions.CanSetInMemoryQuery")]
public bool CanSetDefiningQuery (System.Linq.Expressions.LambdaExpression query, bool fromDataAnnotation = false);
[System.Obsolete("Use InMemoryEntityTypeBuilderExtensions.CanSetInMemoryQuery")]
public bool CanSetDefiningQuery (System.Linq.Expressions.LambdaExpression? query, bool fromDataAnnotation = false);
abstract member CanSetDefiningQuery : System.Linq.Expressions.LambdaExpression * bool -> bool
[<System.Obsolete("Use InMemoryEntityTypeBuilderExtensions.CanSetInMemoryQuery")>]
abstract member CanSetDefiningQuery : System.Linq.Expressions.LambdaExpression * bool -> bool
Public Function CanSetDefiningQuery (query As LambdaExpression, Optional fromDataAnnotation As Boolean = false) As Boolean

Parametry

query
LambdaExpression

Dotaz, který poskytne podkladová data pro typ entity bez klíčů.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

true pokud lze daný definující dotaz nastavit.

Atributy

Platí pro