RelationalPropertyBuilderExtensions.HasColumnOrder 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
HasColumnOrder(PropertyBuilder, Nullable<Int32>)
配置属性映射到的列的顺序。
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
参数
- propertyBuilder
- PropertyBuilder
所配置属性的生成器。
返回
同一生成器实例,以便可以链接多个调用。
适用于
HasColumnOrder(IConventionPropertyBuilder, Nullable<Int32>, Boolean)
配置属性映射到的列的顺序。
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
参数
- propertyBuilder
- IConventionPropertyBuilder
所配置属性的生成器。
- fromDataAnnotation
- Boolean
一个值,该值指示是否使用数据注释指定了配置。
返回
如果应用了配置,则为同一生成器实例, null
否则为 。
适用于
HasColumnOrder<TProperty>(PropertyBuilder<TProperty>, Nullable<Int32>)
配置属性映射到的列的顺序。
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)
类型参数
- TProperty
参数
- propertyBuilder
- PropertyBuilder<TProperty>
所配置属性的生成器。
返回
同一生成器实例,以便可以链接多个调用。