InMemoryEntityTypeExtensions.SetInMemoryQuery 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.
Overloads
SetInMemoryQuery(IMutableEntityType, LambdaExpression) |
Sets the LINQ query used as the default source for queries of this type. |
SetInMemoryQuery(IConventionEntityType, LambdaExpression, Boolean) |
Sets the LINQ query used as the default source for queries of this type. |
SetInMemoryQuery(IMutableEntityType, LambdaExpression)
Sets the LINQ query used as the default source for queries of this type.
public static void SetInMemoryQuery (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Linq.Expressions.LambdaExpression inMemoryQuery);
public static void SetInMemoryQuery (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Linq.Expressions.LambdaExpression? inMemoryQuery);
static member SetInMemoryQuery : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Linq.Expressions.LambdaExpression -> unit
<Extension()>
Public Sub SetInMemoryQuery (entityType As IMutableEntityType, inMemoryQuery As LambdaExpression)
Parameters
- entityType
- IMutableEntityType
The entity type.
- inMemoryQuery
- LambdaExpression
The LINQ query used as the default source.
Applies to
SetInMemoryQuery(IConventionEntityType, LambdaExpression, Boolean)
Sets the LINQ query used as the default source for queries of this type.
public static System.Linq.Expressions.LambdaExpression SetInMemoryQuery (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Linq.Expressions.LambdaExpression inMemoryQuery, bool fromDataAnnotation = false);
public static System.Linq.Expressions.LambdaExpression? SetInMemoryQuery (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Linq.Expressions.LambdaExpression? inMemoryQuery, bool fromDataAnnotation = false);
static member SetInMemoryQuery : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Linq.Expressions.LambdaExpression * bool -> System.Linq.Expressions.LambdaExpression
<Extension()>
Public Function SetInMemoryQuery (entityType As IConventionEntityType, inMemoryQuery As LambdaExpression, Optional fromDataAnnotation As Boolean = false) As LambdaExpression
Parameters
- entityType
- IConventionEntityType
The entity type.
- inMemoryQuery
- LambdaExpression
The LINQ query used as the default source.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured entity type.
Applies to
Entity Framework