RelationalEntityTypeExtensions.SetComment メソッド

定義

オーバーロード

SetComment(IMutableEntityType, String)

このエンティティがマップされるテーブルに適用するコメントを構成します。

SetComment(IConventionEntityType, String, Boolean)

このエンティティがマップされるテーブルに適用するコメントを構成します。

SetComment(IMutableEntityType, String)

このエンティティがマップされるテーブルに適用するコメントを構成します。

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

パラメーター

entityType
IMutableEntityType

エンティティの型。

comment
String

このエンティティがマップされているテーブルのコメント。

適用対象

SetComment(IConventionEntityType, String, Boolean)

このエンティティがマップされるテーブルに適用するコメントを構成します。

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

パラメーター

entityType
IConventionEntityType

エンティティの型。

comment
String

テーブルのコメント。

fromDataAnnotation
Boolean

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

戻り値

構成されたコメント。

適用対象