SqlServerPropertyExtensions.SetIdentityIncrement 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SetIdentityIncrement(IMutableProperty, Nullable<Int32>)
设置标识增量。
public static void SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? increment);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> -> unit
<Extension()>
Public Sub SetIdentityIncrement (property As IMutableProperty, increment As Nullable(Of Integer))
参数
- property
- IMutableProperty
属性。
适用于
SetIdentityIncrement(IMutableRelationalPropertyOverrides, Nullable<Int32>)
设置特定表的标识增量。
public static void SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IMutableRelationalPropertyOverrides overrides, int? increment);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IMutableRelationalPropertyOverrides * Nullable<int> -> unit
<Extension()>
Public Sub SetIdentityIncrement (overrides As IMutableRelationalPropertyOverrides, increment As Nullable(Of Integer))
参数
- overrides
- IMutableRelationalPropertyOverrides
属性重写。
适用于
SetIdentityIncrement(IConventionProperty, Nullable<Int32>, Boolean)
设置标识增量。
public static void SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? increment, bool fromDataAnnotation = false);
public static int? SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? increment, bool fromDataAnnotation = false);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int> * bool -> unit
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Sub SetIdentityIncrement (property As IConventionProperty, increment As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIdentityIncrement (property As IConventionProperty, increment As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)
参数
- property
- IConventionProperty
属性。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定配置。
返回
配置的值。
适用于
SetIdentityIncrement(IConventionRelationalPropertyOverrides, Nullable<Int32>, Boolean)
设置特定表的标识增量。
public static int? SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IConventionRelationalPropertyOverrides overrides, int? increment, bool fromDataAnnotation = false);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IConventionRelationalPropertyOverrides * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Function SetIdentityIncrement (overrides As IConventionRelationalPropertyOverrides, increment As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)
参数
- overrides
- IConventionRelationalPropertyOverrides
属性重写。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定配置。
返回
配置的值。
适用于
SetIdentityIncrement(IMutableProperty, Nullable<Int32>, StoreObjectIdentifier)
设置特定表的标识增量。
public static void SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? increment, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> * StoreObjectIdentifier -> unit
<Extension()>
Public Sub SetIdentityIncrement (property As IMutableProperty, increment As Nullable(Of Integer), ByRef storeObject As StoreObjectIdentifier)
参数
- property
- IMutableProperty
属性。
- storeObject
- StoreObjectIdentifier
包含列的表的标识符。
适用于
SetIdentityIncrement(IConventionProperty, Nullable<Int32>, StoreObjectIdentifier, Boolean)
设置特定表的标识增量。
public static int? SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? increment, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int> * StoreObjectIdentifier * bool -> Nullable<int>
<Extension()>
Public Function SetIdentityIncrement (property As IConventionProperty, increment As Nullable(Of Integer), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)
参数
- property
- IConventionProperty
属性。
- storeObject
- StoreObjectIdentifier
包含列的表的标识符。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定配置。
返回
配置的值。