IConventionIndexBuilder.IsDescending 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
配置此索引欄位(升序或降序)的排序順序。
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder? IsDescending(System.Collections.Generic.IReadOnlyList<bool>? descending, bool fromDataAnnotation = false);
abstract member IsDescending : System.Collections.Generic.IReadOnlyList<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder
Public Function IsDescending (descending As IReadOnlyList(Of Boolean), Optional fromDataAnnotation As Boolean = false) As IConventionIndexBuilder
參數
- descending
- IReadOnlyList<Boolean>
一組值,指示每個對應的索引欄是否採用遞減排序順序。
- fromDataAnnotation
- Boolean
表示配置是否以資料註解方式指定。
傳回
如果唯一性被設定,則使用同一個建構者實例, null 否則。