RelationalPropertyExtensions.SetColumnOrder 方法

定義

多載

SetColumnOrder(IMutableProperty, Nullable<Int32>)

設定屬性所對應之資料行的順序。

SetColumnOrder(IConventionProperty, Nullable<Int32>, Boolean)

設定屬性所對應之資料行的順序。

SetColumnOrder(IMutableProperty, Nullable<Int32>)

設定屬性所對應之資料行的順序。

public static void SetColumnOrder (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? order);
static member SetColumnOrder : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> -> unit
<Extension()>
Public Sub SetColumnOrder (property As IMutableProperty, order As Nullable(Of Integer))

參數

property
IMutableProperty

屬性。

order
Nullable<Int32>

資料行順序。

適用於

SetColumnOrder(IConventionProperty, Nullable<Int32>, Boolean)

設定屬性所對應之資料行的順序。

public static int? SetColumnOrder (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? order, bool fromDataAnnotation = false);
static member SetColumnOrder : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Function SetColumnOrder (property As IConventionProperty, order As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

參數

property
IConventionProperty

屬性。

order
Nullable<Int32>

資料行順序。

fromDataAnnotation
Boolean

值,指出是否使用資料批註指定組態。

傳回

已設定的值。

適用於