次の方法で共有


ConventionEntityTypeExtensions.SetDefiningQuery メソッド

定義

注意事項

Use InMemoryEntityTypeExtensions.SetInMemoryQuery

この型のクエリの既定のソースとして使用される LINQ クエリを設定します。

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)

パラメーター

entityType
IConventionEntityType

エンティティの型。

definingQuery
LambdaExpression

既定のソースとして使用される LINQ クエリ。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

属性

適用対象