Share via


ConventionPrimitivePropertyConfiguration.HasColumnOrder(Int32) Method

Definition

Configures the order of the database column used to store the property. This method is also used to specify key ordering when an entity type has a composite key.

public virtual System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration HasColumnOrder (int columnOrder);
abstract member HasColumnOrder : int -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
override this.HasColumnOrder : int -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
Public Overridable Function HasColumnOrder (columnOrder As Integer) As ConventionPrimitivePropertyConfiguration

Parameters

columnOrder
Int32

The order that this column should appear in the database table.

Returns

The same ConventionPrimitivePropertyConfiguration instance so that multiple calls can be chained.

Remarks

Calling this will have no effect once it has been configured.

Applies to