RelationalModelExtensions.SetCollation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetCollation(IMutableModel, String) |
設定資料庫的整合。 |
| SetCollation(IConventionModel, String, Boolean) |
設定資料庫的整合。 |
SetCollation(IMutableModel, String)
設定資料庫的整合。
public static void SetCollation(this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? value);
public static void SetCollation(this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string value);
static member SetCollation : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetCollation (model As IMutableModel, value As String)
參數
- model
- IMutableModel
設定整合的模型。
- value
- String
要設定的值。
適用於
SetCollation(IConventionModel, String, Boolean)
設定資料庫的整合。
public static string? SetCollation(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? value, bool fromDataAnnotation = false);
public static string SetCollation(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
static member SetCollation : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Function SetCollation (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false) As String
參數
- model
- IConventionModel
設定整合的模型。
- value
- String
要設定的值。
- fromDataAnnotation
- Boolean
表示配置是否以資料註解方式指定。
傳回
配置好的彙整。