RelationalPropertyBuilderExtensions.HasColumnOrder Method

Definition

Overloads

HasColumnOrder(PropertyBuilder, Nullable<Int32>)

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

HasColumnOrder(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

HasColumnOrder<TProperty>(PropertyBuilder<TProperty>, Nullable<Int32>)

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

HasColumnOrder(PropertyBuilder, Nullable<Int32>)

Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs

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

C#
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasColumnOrder (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, int? order);

Parameters

propertyBuilder
PropertyBuilder

The builder of the property being configured.

order
Nullable<Int32>

The column order.

Returns

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

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0

HasColumnOrder(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs

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

C#
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasColumnOrder (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, int? order, bool fromDataAnnotation = false);

Parameters

propertyBuilder
IConventionPropertyBuilder

The builder of the property being configured.

order
Nullable<Int32>

The column order.

fromDataAnnotation
Boolean

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

Returns

The same builder instance if the configuration was applied, null otherwise.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0

HasColumnOrder<TProperty>(PropertyBuilder<TProperty>, Nullable<Int32>)

Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs

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

C#
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasColumnOrder<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, int? order);

Type Parameters

TProperty

Parameters

propertyBuilder
PropertyBuilder<TProperty>

The builder of the property being configured.

order
Nullable<Int32>

The column order.

Returns

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

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0