다음을 통해 공유


IConventionEntityTypeBuilder.CanSetDefiningQuery 메서드

정의

주의

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);
[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

매개 변수

query
LambdaExpression

키 없는 엔터티 형식에 대한 기본 데이터를 제공하는 쿼리입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

true 지정된 정의 쿼리를 설정할 수 있으면 입니다.

특성

적용 대상