RelationalPropertyExtensions.SetCollation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetCollation(IConventionProperty, String, Boolean) |
配置一個整合以用於該屬性映射到的欄位。 |
| SetCollation(IMutableProperty, String) |
配置一個彙整以用於該屬性映射的欄位。 |
SetCollation(IConventionProperty, String, Boolean)
配置一個整合以用於該屬性映射到的欄位。
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
參數
- property
- IConventionProperty
屬性。
- collation
- String
專欄的整理。
- fromDataAnnotation
- Boolean
表示配置是否以資料註解方式指定。
傳回
設定值。
適用於
SetCollation(IMutableProperty, String)
配置一個彙整以用於該屬性映射的欄位。
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)
參數
- property
- IMutableProperty
屬性。
- collation
- String
專欄的整理。