RelationalPropertyExtensions.SetColumnOrder 方法

定义

重载

SetColumnOrder(IMutableProperty, Nullable<Int32>)

设置属性映射到的列的顺序。

SetColumnOrder(IConventionProperty, Nullable<Int32>, Boolean)

设置属性映射到的列的顺序。

SetColumnOrder(IMutableProperty, Nullable<Int32>)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

设置属性映射到的列的顺序。

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)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

设置属性映射到的列的顺序。

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

一个值,该值指示是否使用数据注释指定了配置。

返回

配置的值。

适用于