RelationalPropertyBuilderExtensions.CanSetColumnOrder Method

Definition

Gets a value indicating whether the given column order can be set for the property.

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

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

true if the column order can be set for the property.

Applies to