RelationalPropertyExtensions.SetColumnOrder Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
- fromDataAnnotation
- Boolean
A value indicating whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework