IConventionEntityTypeBuilder.CanSetDefiningQuery Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use InMemoryEntityTypeBuilderExtensions.CanSetInMemoryQuery
Returns a value indicating whether the given defining query can be set from the current configuration source.
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
Parameters
- query
- LambdaExpression
The query that will provide the underlying data for the keyless entity type.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the given defining query can be set.
- Attributes
Applies to
Entity Framework