SqlServerPropertyBuilderExtensions.UseSqlServerIdentityColumn Method

Definition

Overloads

UseSqlServerIdentityColumn(PropertyBuilder)

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseSqlServerIdentityColumn(PropertyBuilder, Int32, Int32)
Obsolete.

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseSqlServerIdentityColumn<TProperty>(PropertyBuilder<TProperty>)

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseSqlServerIdentityColumn<TProperty>(PropertyBuilder<TProperty>, Int32, Int32)
Obsolete.

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseSqlServerIdentityColumn(PropertyBuilder)

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder UseSqlServerIdentityColumn (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder);
static member UseSqlServerIdentityColumn : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function UseSqlServerIdentityColumn (propertyBuilder As PropertyBuilder) As PropertyBuilder

Parameters

propertyBuilder
PropertyBuilder

The builder for the property being configured.

Returns

The same builder instance so that multiple calls can be chained.

Applies to

UseSqlServerIdentityColumn(PropertyBuilder, Int32, Int32)

Caution

Use UseIdentityColumn

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

[System.Obsolete("Use UseIdentityColumn")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder UseSqlServerIdentityColumn (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, int seed = 1, int increment = 1);
[<System.Obsolete("Use UseIdentityColumn")>]
static member UseSqlServerIdentityColumn : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * int * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function UseSqlServerIdentityColumn (propertyBuilder As PropertyBuilder, Optional seed As Integer = 1, Optional increment As Integer = 1) As PropertyBuilder

Parameters

propertyBuilder
PropertyBuilder

The builder for the property being configured.

seed
Int32

The value that is used for the very first row loaded into the table.

increment
Int32

The incremental value that is added to the identity value of the previous row that was loaded.

Returns

The same builder instance so that multiple calls can be chained.

Attributes

Applies to

UseSqlServerIdentityColumn<TProperty>(PropertyBuilder<TProperty>)

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> UseSqlServerIdentityColumn<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder);
static member UseSqlServerIdentityColumn : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function UseSqlServerIdentityColumn(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty)) As PropertyBuilder(Of TProperty)

Type Parameters

TProperty

The type of the property being configured.

Parameters

propertyBuilder
PropertyBuilder<TProperty>

The builder for the property being configured.

Returns

The same builder instance so that multiple calls can be chained.

Applies to

UseSqlServerIdentityColumn<TProperty>(PropertyBuilder<TProperty>, Int32, Int32)

Caution

Use UseIdentityColumn

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

[System.Obsolete("Use UseIdentityColumn")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> UseSqlServerIdentityColumn<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, int seed = 1, int increment = 1);
[<System.Obsolete("Use UseIdentityColumn")>]
static member UseSqlServerIdentityColumn : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * int * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function UseSqlServerIdentityColumn(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), Optional seed As Integer = 1, Optional increment As Integer = 1) As PropertyBuilder(Of TProperty)

Type Parameters

TProperty

The type of the property being configured.

Parameters

propertyBuilder
PropertyBuilder<TProperty>

The builder for the property being configured.

seed
Int32

The value that is used for the very first row loaded into the table.

increment
Int32

The incremental value that is added to the identity value of the previous row that was loaded.

Returns

The same builder instance so that multiple calls can be chained.

Attributes

Applies to