SqlServerPropertyExtensions.SetIdentityIncrement Method

Definition

Overloads

SetIdentityIncrement(IMutableProperty, Nullable<Int32>)

Sets the identity increment.

SetIdentityIncrement(IMutableRelationalPropertyOverrides, Nullable<Int32>)

Sets the identity increment for a particular table.

SetIdentityIncrement(IConventionProperty, Nullable<Int32>, Boolean)

Sets the identity increment.

SetIdentityIncrement(IConventionRelationalPropertyOverrides, Nullable<Int32>, Boolean)

Sets the identity increment for a particular table.

SetIdentityIncrement(IMutableProperty, Nullable<Int32>, StoreObjectIdentifier)

Sets the identity increment for a particular table.

SetIdentityIncrement(IConventionProperty, Nullable<Int32>, StoreObjectIdentifier, Boolean)

Sets the identity increment for a particular table.

SetIdentityIncrement(IMutableProperty, Nullable<Int32>)

Sets the identity increment.

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))

Parameters

property
IMutableProperty

The property.

increment
Nullable<Int32>

The value to set.

Applies to

SetIdentityIncrement(IMutableRelationalPropertyOverrides, Nullable<Int32>)

Sets the identity increment for a particular table.

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))

Parameters

overrides
IMutableRelationalPropertyOverrides

The property overrides.

increment
Nullable<Int32>

The value to set.

Applies to

SetIdentityIncrement(IConventionProperty, Nullable<Int32>, Boolean)

Sets the identity increment.

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)

Parameters

property
IConventionProperty

The property.

increment
Nullable<Int32>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to

SetIdentityIncrement(IConventionRelationalPropertyOverrides, Nullable<Int32>, Boolean)

Sets the identity increment for a particular table.

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)

Parameters

overrides
IConventionRelationalPropertyOverrides

The property overrides.

increment
Nullable<Int32>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to

SetIdentityIncrement(IMutableProperty, Nullable<Int32>, StoreObjectIdentifier)

Sets the identity increment for a particular table.

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)

Parameters

property
IMutableProperty

The property.

increment
Nullable<Int32>

The value to set.

storeObject
StoreObjectIdentifier

The identifier of the table containing the column.

Applies to

SetIdentityIncrement(IConventionProperty, Nullable<Int32>, StoreObjectIdentifier, Boolean)

Sets the identity increment for a particular table.

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)

Parameters

property
IConventionProperty

The property.

increment
Nullable<Int32>

The value to set.

storeObject
StoreObjectIdentifier

The identifier of the table containing the column.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to