Udostępnij za pośrednictwem


IConventionEntityTypeBuilder.CanSetDefiningQuery Metoda

Definicja

Przestroga

Use InMemoryEntityTypeBuilderExtensions.CanSetInMemoryQuery

Zwraca wartość wskazującą, czy można ustawić podane zapytanie definiujące z bieżącego źródła konfiguracji.

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

Zapytanie, które zapewni podstawowe dane dla typu jednostki bez klucza.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

true jeśli można ustawić podane zapytanie definiujące.

Atrybuty

Dotyczy