Delen via


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.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasColumnOrder (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, int? order);
static member HasColumnOrder : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * Nullable<int> -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function HasColumnOrder (propertyBuilder As PropertyBuilder, order As Nullable(Of Integer)) As PropertyBuilder

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

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.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasColumnOrder (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, int? order, bool fromDataAnnotation = false);
static member HasColumnOrder : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function HasColumnOrder (propertyBuilder As IConventionPropertyBuilder, order As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

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

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.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasColumnOrder<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, int? order);
static member HasColumnOrder : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * Nullable<int> -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function HasColumnOrder(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), order As Nullable(Of Integer)) As PropertyBuilder(Of TProperty)

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