共用方式為


IConventionElementTypeBuilder.IsUnicode 方法

定義

設定集合的專案是否能夠保存 Unicode 字元。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionElementTypeBuilder? IsUnicode (bool? unicode, bool fromDataAnnotation = false);
abstract member IsUnicode : Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionElementTypeBuilder
Public Function IsUnicode (unicode As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As IConventionElementTypeBuilder

參數

unicode
Nullable<Boolean>

值,指出集合的專案是否可以包含 Unicode 字元。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

如果套用組態,則為相同的產生器實例, null 否則為 。

適用於