RelationalPropertyExtensions.SetCollation 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 |
|---|---|
| SetCollation(IConventionProperty, String, Boolean) |
Mengonfigurasi kolase yang akan digunakan untuk kolom tempat properti ini dipetakan. |
| SetCollation(IMutableProperty, String) |
Mengonfigurasi kolase yang akan digunakan untuk kolom tempat properti ini dipetakan. |
SetCollation(IConventionProperty, String, Boolean)
Mengonfigurasi kolase yang akan digunakan untuk kolom tempat properti ini dipetakan.
public static string? SetCollation(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? collation, bool fromDataAnnotation = false);
public static string SetCollation(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string collation, bool fromDataAnnotation = false);
static member SetCollation : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Function SetCollation (property As IConventionProperty, collation As String, Optional fromDataAnnotation As Boolean = false) As String
Parameter
- property
- IConventionProperty
Properti tersebut.
- collation
- String
Kolas untuk kolom.
- fromDataAnnotation
- Boolean
Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.
Mengembalikan
Nilai yang dikonfigurasi.
Berlaku untuk
SetCollation(IMutableProperty, String)
Mengonfigurasi kolase yang akan digunakan untuk kolom tempat properti ini dipetakan.
public static void SetCollation(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? collation);
public static void SetCollation(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string collation);
static member SetCollation : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetCollation (property As IMutableProperty, collation As String)
Parameter
- property
- IMutableProperty
Properti tersebut.
- collation
- String
Kolas untuk kolom.