RelationalPropertyExtensions.SetComment メソッド

定義

オーバーロード

SetComment(IConventionProperty, String, Boolean)

このプロパティがマップされる列に適用するコメントを構成します。

SetComment(IMutableProperty, String)

このプロパティがマップされる列に適用するコメントを構成します。

SetComment(IConventionProperty, String, Boolean)

このプロパティがマップされる列に適用するコメントを構成します。

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

パラメーター

property
IConventionProperty

プロパティ。

comment
String

列のコメント。

fromDataAnnotation
Boolean

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

戻り値

構成された値です。

適用対象

SetComment(IMutableProperty, String)

このプロパティがマップされる列に適用するコメントを構成します。

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

パラメーター

property
IMutableProperty

プロパティ。

comment
String

列のコメント。

適用対象