語言

IConventionIndex.SetIsDescending 方法

定義

設定此索引的排序順序(升序或降序)。

public System.Collections.Generic.IReadOnlyList<bool>? SetIsDescending(System.Collections.Generic.IReadOnlyList<bool>? descending, bool fromDataAnnotation = false);
abstract member SetIsDescending : System.Collections.Generic.IReadOnlyList<bool> * bool -> System.Collections.Generic.IReadOnlyList<bool>
Public Function SetIsDescending (descending As IReadOnlyList(Of Boolean), Optional fromDataAnnotation As Boolean = false) As IReadOnlyList(Of Boolean)

參數

descending
IReadOnlyList<Boolean>

一組值,指示每個對應的索引欄是否採用遞減排序順序。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

已設定的排序順序。

適用於