RelationalEntityTypeExtensions.SetSqlQuery メソッド

定義

オーバーロード

SetSqlQuery(IMutableEntityType, String)

エンティティ型のデータを提供するために使用する SQL 文字列を設定します。

SetSqlQuery(IConventionEntityType, String, Boolean)

エンティティ型のデータを提供するために使用する SQL 文字列を設定します。

SetSqlQuery(IMutableEntityType, String)

エンティティ型のデータを提供するために使用する SQL 文字列を設定します。

public static void SetSqlQuery (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static void SetSqlQuery (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? name);
static member SetSqlQuery : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetSqlQuery (entityType As IMutableEntityType, name As String)

パラメーター

entityType
IMutableEntityType

エンティティの型。

name
String

設定する SQL 文字列。

適用対象

SetSqlQuery(IConventionEntityType, String, Boolean)

エンティティ型のデータを提供するために使用する SQL 文字列を設定します。

public static string SetSqlQuery (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name, bool fromDataAnnotation = false);
public static string? SetSqlQuery (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
static member SetSqlQuery : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Function SetSqlQuery (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false) As String

パラメーター

entityType
IConventionEntityType

エンティティの型。

name
String

設定する SQL 文字列。

fromDataAnnotation
Boolean

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

戻り値

構成された値です。

適用対象