RelationalEntityTypeExtensions.SetSqlQuery メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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
構成がデータ注釈を使用して指定されたかどうかを示します。
戻り値
構成された値です。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework