Share via


StringPropertyConfiguration.HasColumnOrder(Nullable<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 System.Data.Entity.ModelConfiguration.Configuration.StringPropertyConfiguration HasColumnOrder (Nullable<int> columnOrder);
override this.HasColumnOrder : Nullable<int> -> System.Data.Entity.ModelConfiguration.Configuration.StringPropertyConfiguration
Public Function HasColumnOrder (columnOrder As Nullable(Of Integer)) As StringPropertyConfiguration

Parameters

columnOrder
Nullable<Int32>

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

Returns

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

Applies to