共用方式為


RelationalPropertyBuilderExtensions.HasColumnOrder 方法

定義

多載

HasColumnOrder(PropertyBuilder, Nullable<Int32>)

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

HasColumnOrder(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

HasColumnOrder<TProperty>(PropertyBuilder<TProperty>, Nullable<Int32>)

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

HasColumnOrder(PropertyBuilder, Nullable<Int32>)

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasColumnOrder (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, int? order);
static member HasColumnOrder : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * Nullable<int> -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function HasColumnOrder (propertyBuilder As PropertyBuilder, order As Nullable(Of Integer)) As PropertyBuilder

參數

propertyBuilder
PropertyBuilder

正在設定之屬性的產生器。

order
Nullable<Int32>

資料行順序。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於

HasColumnOrder(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

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

參數

propertyBuilder
IConventionPropertyBuilder

正在設定之屬性的產生器。

order
Nullable<Int32>

資料行順序。

fromDataAnnotation
Boolean

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

傳回

如果套用組態,則為相同的產生器實例, null 否則為 。

適用於

HasColumnOrder<TProperty>(PropertyBuilder<TProperty>, Nullable<Int32>)

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasColumnOrder<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, int? order);
static member HasColumnOrder : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * Nullable<int> -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function HasColumnOrder(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), order As Nullable(Of Integer)) As PropertyBuilder(Of TProperty)

類型參數

TProperty

參數

propertyBuilder
PropertyBuilder<TProperty>

正在設定之屬性的產生器。

order
Nullable<Int32>

資料行順序。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於