Condividi tramite


IConventionEntityTypeBuilder.CanSetDefiningQuery Metodo

Definizione

Attenzione

Use InMemoryEntityTypeBuilderExtensions.CanSetInMemoryQuery

Restituisce un valore che indica se la query di definizione specificata può essere impostata dall'origine di configurazione corrente.

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

Parametri

query
LambdaExpression

Query che fornirà i dati sottostanti per il tipo di entità senza chiave.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

true se la query di definizione specificata può essere impostata.

Attributi

Si applica a