Delen via


SqlServerPropertyExtensions.SetIdentitySeed Method

Definition

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)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

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.

seed
Nullable<Int64>

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

SetIdentitySeed(IMutableProperty, Nullable<Int64>, StoreObjectIdentifier)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

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.

seed
Nullable<Int64>

The value to set.

storeObject
StoreObjectIdentifier

The identifier of the table containing the column.

Applies to

SetIdentitySeed(IConventionRelationalPropertyOverrides, Nullable<Int64>, Boolean)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

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.

seed
Nullable<Int64>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to

SetIdentitySeed(IConventionProperty, Nullable<Int64>, Boolean)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

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.

seed
Nullable<Int64>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to

SetIdentitySeed(IMutableProperty, Nullable<Int32>)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

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.

seed
Nullable<Int32>

The value to set.

Applies to

SetIdentitySeed(IMutableRelationalPropertyOverrides, Nullable<Int64>)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

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.

seed
Nullable<Int64>

The value to set.

Applies to

SetIdentitySeed(IMutableProperty, Nullable<Int64>)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

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.

seed
Nullable<Int64>

The value to set.

Applies to

SetIdentitySeed(IConventionProperty, Nullable<Int32>, Boolean)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

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.

seed
Nullable<Int32>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to