RelationalPropertyExtensions.SetColumnOrder Method

Definition

Overloads

SetColumnOrder(IMutableProperty, Nullable<Int32>)

Sets the order of the column the property is mapped to.

SetColumnOrder(IConventionProperty, Nullable<Int32>, Boolean)

Sets the order of the column the property is mapped to.

SetColumnOrder(IMutableProperty, Nullable<Int32>)

Sets the order of the column the property is mapped to.

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))

Parameters

property
IMutableProperty

The property.

order
Nullable<Int32>

The column order.

Applies to

SetColumnOrder(IConventionProperty, Nullable<Int32>, Boolean)

Sets the order of the column the property is mapped to.

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)

Parameters

property
IConventionProperty

The property.

order
Nullable<Int32>

The column order.

fromDataAnnotation
Boolean

A value indicating whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to