共用方式為


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

資料行的批註。

適用於