語言

IConventionIndexBuilder.IsDescending 方法

定義

配置此索引欄位(升序或降序)的排序順序。

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 否則。

適用於