Bagikan melalui


RelationalPropertyExtensions.SetComment Metode

Definisi

Overload

SetComment(IConventionProperty, String, Boolean)

Mengonfigurasi komentar yang akan diterapkan ke kolom tempat properti ini dipetakan.

SetComment(IMutableProperty, String)

Mengonfigurasi komentar yang akan diterapkan ke kolom tempat properti ini dipetakan.

SetComment(IConventionProperty, String, Boolean)

Mengonfigurasi komentar yang akan diterapkan ke kolom tempat properti ini dipetakan.

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

Parameter

property
IConventionProperty

Properti .

comment
String

Komentar untuk kolom.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Nilai yang dikonfigurasi.

Berlaku untuk

SetComment(IMutableProperty, String)

Mengonfigurasi komentar yang akan diterapkan ke kolom tempat properti ini dipetakan.

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)

Parameter

property
IMutableProperty

Properti .

comment
String

Komentar untuk kolom.

Berlaku untuk