RelationalPropertyExtensions.SetComment 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
資料行的批註。