RelationalPropertyExtensions.SetComment Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
| Nama | Deskripsi |
|---|---|
| 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. |
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 tersebut.
- comment
- String
Komentar untuk kolom.
Berlaku untuk
SetComment(IConventionProperty, String, Boolean)
Mengonfigurasi komentar yang akan diterapkan ke kolom tempat properti ini dipetakan.
public static string? SetComment(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? comment, bool fromDataAnnotation = false);
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);
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> unit
<Extension()>
Public Function SetComment (property As IConventionProperty, comment As String, Optional fromDataAnnotation As Boolean = false) As String
<Extension()>
Public Sub SetComment (property As IConventionProperty, comment As String, Optional fromDataAnnotation As Boolean = false)
Parameter
- property
- IConventionProperty
Properti tersebut.
- comment
- String
Komentar untuk kolom.
- fromDataAnnotation
- Boolean
Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.
Mengembalikan
Nilai yang dikonfigurasi.