RelationalPropertyBuilderExtensions.UseCollation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| UseCollation(IConventionPropertyBuilder, String, Boolean) |
配置屬性以使用給定的排序。 資料庫欄位將以該排序建立,並隱含用於所有敏感排序操作。 |
| UseCollation(PropertyBuilder, String) |
配置屬性以使用給定的排序。 資料庫欄位將以該排序建立,並隱含用於所有敏感排序操作。 |
| UseCollation<TProperty>(PropertyBuilder<TProperty>, String) |
配置屬性以使用給定的排序。 資料庫欄位將以該排序建立,並隱含用於所有敏感排序操作。 |
UseCollation(IConventionPropertyBuilder, String, Boolean)
配置屬性以使用給定的排序。 資料庫欄位將以該排序建立,並隱含用於所有敏感排序操作。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? UseCollation(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string? collation, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder UseCollation(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string collation, bool fromDataAnnotation = false);
static member UseCollation : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function UseCollation (propertyBuilder As IConventionPropertyBuilder, collation As String, Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder
參數
- propertyBuilder
- IConventionPropertyBuilder
正在配置的物業的建商。
- collation
- String
那個組合。
- fromDataAnnotation
- Boolean
表示配置是否以資料註解方式指定。
傳回
如果設定是套用,則使用同一個建構者實例, null 否則。
備註
更多資訊與範例請參見 資料庫整合 。
適用於
UseCollation(PropertyBuilder, String)
配置屬性以使用給定的排序。 資料庫欄位將以該排序建立,並隱含用於所有敏感排序操作。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder UseCollation(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string? collation);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder UseCollation(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string collation);
static member UseCollation : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function UseCollation (propertyBuilder As PropertyBuilder, collation As String) As PropertyBuilder
參數
- propertyBuilder
- PropertyBuilder
正在配置的物業的建商。
- collation
- String
專欄的整理。
傳回
同一個建構實例,這樣可以串接多個呼叫。
備註
更多資訊與範例請參見 資料庫整合 。
適用於
UseCollation<TProperty>(PropertyBuilder<TProperty>, String)
配置屬性以使用給定的排序。 資料庫欄位將以該排序建立,並隱含用於所有敏感排序操作。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> UseCollation<TProperty>(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string? collation);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> UseCollation<TProperty>(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string collation);
static member UseCollation : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function UseCollation(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), collation As String) As PropertyBuilder(Of TProperty)
類型參數
- TProperty
參數
- propertyBuilder
- PropertyBuilder<TProperty>
正在配置的物業的建商。
- collation
- String
專欄的整理。
傳回
同一個建構實例,這樣可以串接多個呼叫。
備註
更多資訊與範例請參見 資料庫整合 。