InMemoryEntityTypeExtensions.SetInMemoryQuery Method

Definition

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