RelationalPropertyBuilderExtensions.CanSetCollation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,表示該給定值是否可設定為彙整。
public static bool CanSetCollation(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string? collation, bool fromDataAnnotation = false);
public static bool CanSetCollation(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string collation, bool fromDataAnnotation = false);
static member CanSetCollation : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * string * bool -> bool
<Extension()>
Public Function CanSetCollation (propertyBuilder As IConventionPropertyBuilder, collation As String, Optional fromDataAnnotation As Boolean = false) As Boolean
參數
- propertyBuilder
- IConventionPropertyBuilder
正在配置的物業的建商。
- collation
- String
那個組合。
- fromDataAnnotation
- Boolean
表示配置是否以資料註解方式指定。
傳回
true 若該欄位預設值可設定為該欄位。
備註
更多資訊與範例請參見 資料庫整合 。