SqlServerPropertyExtensions.SetIdentitySeed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetIdentitySeed(IConventionProperty, Nullable<Int64>, StoreObjectIdentifier, Boolean) |
Sets the identity seed for a particular table. |
SetIdentitySeed(IMutableProperty, Nullable<Int64>, StoreObjectIdentifier) |
Sets the identity seed for a particular table. |
SetIdentitySeed(IConventionRelationalPropertyOverrides, Nullable<Int64>, Boolean) |
Sets the identity seed for a particular table. |
SetIdentitySeed(IConventionProperty, Nullable<Int64>, Boolean) |
Sets the identity seed. |
SetIdentitySeed(IMutableProperty, Nullable<Int32>) |
Sets the identity seed. |
SetIdentitySeed(IMutableRelationalPropertyOverrides, Nullable<Int64>) |
Sets the identity seed for a particular table. |
SetIdentitySeed(IMutableProperty, Nullable<Int64>) |
Sets the identity seed. |
SetIdentitySeed(IConventionProperty, Nullable<Int32>, Boolean) |
Sets the identity seed. |
SetIdentitySeed(IConventionProperty, Nullable<Int64>, StoreObjectIdentifier, Boolean)
Sets the identity seed for a particular table.
public static long? SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, long? seed, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int64> * StoreObjectIdentifier * bool -> Nullable<int64>
<Extension()>
Public Function SetIdentitySeed (property As IConventionProperty, seed As Nullable(Of Long), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As Nullable(Of Long)
Parameters
- property
- IConventionProperty
The property.
- 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
SetIdentitySeed(IMutableProperty, Nullable<Int64>, StoreObjectIdentifier)
Sets the identity seed for a particular table.
public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, long? seed, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int64> * StoreObjectIdentifier -> unit
<Extension()>
Public Sub SetIdentitySeed (property As IMutableProperty, seed As Nullable(Of Long), ByRef storeObject As StoreObjectIdentifier)
Parameters
- property
- IMutableProperty
The property.
- storeObject
- StoreObjectIdentifier
The identifier of the table containing the column.
Applies to
SetIdentitySeed(IConventionRelationalPropertyOverrides, Nullable<Int64>, Boolean)
Sets the identity seed for a particular table.
public static long? SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionRelationalPropertyOverrides overrides, long? seed, bool fromDataAnnotation = false);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionRelationalPropertyOverrides * Nullable<int64> * bool -> Nullable<int64>
<Extension()>
Public Function SetIdentitySeed (overrides As IConventionRelationalPropertyOverrides, seed As Nullable(Of Long), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Long)
Parameters
- overrides
- IConventionRelationalPropertyOverrides
The property overrides.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
SetIdentitySeed(IConventionProperty, Nullable<Int64>, Boolean)
Sets the identity seed.
public static long? SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, long? seed, bool fromDataAnnotation = false);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int64> * bool -> Nullable<int64>
<Extension()>
Public Function SetIdentitySeed (property As IConventionProperty, seed As Nullable(Of Long), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Long)
Parameters
- property
- IConventionProperty
The property.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
SetIdentitySeed(IMutableProperty, Nullable<Int32>)
Sets the identity seed.
public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? seed);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> -> unit
<Extension()>
Public Sub SetIdentitySeed (property As IMutableProperty, seed As Nullable(Of Integer))
Parameters
- property
- IMutableProperty
The property.
Applies to
SetIdentitySeed(IMutableRelationalPropertyOverrides, Nullable<Int64>)
Sets the identity seed for a particular table.
public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableRelationalPropertyOverrides overrides, long? seed);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableRelationalPropertyOverrides * Nullable<int64> -> unit
<Extension()>
Public Sub SetIdentitySeed (overrides As IMutableRelationalPropertyOverrides, seed As Nullable(Of Long))
Parameters
- overrides
- IMutableRelationalPropertyOverrides
The property overrides.
Applies to
SetIdentitySeed(IMutableProperty, Nullable<Int64>)
Sets the identity seed.
public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, long? seed);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int64> -> unit
<Extension()>
Public Sub SetIdentitySeed (property As IMutableProperty, seed As Nullable(Of Long))
Parameters
- property
- IMutableProperty
The property.
Applies to
SetIdentitySeed(IConventionProperty, Nullable<Int32>, Boolean)
Sets the identity seed.
public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? seed, bool fromDataAnnotation = false);
public static int? SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? seed, bool fromDataAnnotation = false);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int> * bool -> unit
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Sub SetIdentitySeed (property As IConventionProperty, seed As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIdentitySeed (property As IConventionProperty, seed As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)
Parameters
- property
- IConventionProperty
The property.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.