ConventionEntityTypeExtensions.SetDefiningQuery Methode

Definition

Achtung

Use InMemoryEntityTypeExtensions.SetInMemoryQuery

Legt die LINQ-Abfrage fest, die als Standardquelle für Abfragen dieses Typs verwendet wird.

public static void SetDefiningQuery (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Linq.Expressions.LambdaExpression definingQuery, bool fromDataAnnotation = false);
[System.Obsolete("Use InMemoryEntityTypeExtensions.SetInMemoryQuery")]
public static void SetDefiningQuery (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Linq.Expressions.LambdaExpression definingQuery, bool fromDataAnnotation = false);
[System.Obsolete("Use InMemoryEntityTypeExtensions.SetInMemoryQuery")]
public static void SetDefiningQuery (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Linq.Expressions.LambdaExpression? definingQuery, bool fromDataAnnotation = false);
static member SetDefiningQuery : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Linq.Expressions.LambdaExpression * bool -> unit
[<System.Obsolete("Use InMemoryEntityTypeExtensions.SetInMemoryQuery")>]
static member SetDefiningQuery : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Linq.Expressions.LambdaExpression * bool -> unit
<Extension()>
Public Sub SetDefiningQuery (entityType As IConventionEntityType, definingQuery As LambdaExpression, Optional fromDataAnnotation As Boolean = false)

Parameter

entityType
IConventionEntityType

Der Entitätstyp.

definingQuery
LambdaExpression

Die LINQ-Abfrage, die als Standardquelle verwendet wird.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Attribute

Gilt für: