Condividi tramite


SqlServerPropertyBuilderExtensions.UseSqlServerIdentityColumn Metodo

Definizione

Overload

UseSqlServerIdentityColumn(PropertyBuilder)

Configura la proprietà chiave per l'uso della funzionalità IDENTITY SQL Server per generare valori per le nuove entità, quando la destinazione è SQL Server. Questo metodo imposta la proprietà su OnAdd.

UseSqlServerIdentityColumn(PropertyBuilder, Int32, Int32)
Obsoleti.

Configura la proprietà chiave per l'uso della funzionalità IDENTITY SQL Server per generare valori per le nuove entità, quando la destinazione è SQL Server. Questo metodo imposta la proprietà su OnAdd.

UseSqlServerIdentityColumn<TProperty>(PropertyBuilder<TProperty>)

Configura la proprietà chiave per l'uso della funzionalità IDENTITY SQL Server per generare valori per le nuove entità, quando la destinazione è SQL Server. Questo metodo imposta la proprietà su OnAdd.

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

Configura la proprietà chiave per l'uso della funzionalità IDENTITY SQL Server per generare valori per le nuove entità, quando la destinazione è SQL Server. Questo metodo imposta la proprietà su OnAdd.

UseSqlServerIdentityColumn(PropertyBuilder)

Configura la proprietà chiave per l'uso della funzionalità IDENTITY SQL Server per generare valori per le nuove entità, quando la destinazione è SQL Server. Questo metodo imposta la proprietà su 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

Parametri

propertyBuilder
PropertyBuilder

Generatore per la proprietà da configurare.

Restituisce

Stessa istanza del generatore in modo che più chiamate possano essere concatenati.

Si applica a

UseSqlServerIdentityColumn(PropertyBuilder, Int32, Int32)

Attenzione

Use UseIdentityColumn

Configura la proprietà chiave per l'uso della funzionalità IDENTITY SQL Server per generare valori per le nuove entità, quando la destinazione è SQL Server. Questo metodo imposta la proprietà su 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

Parametri

propertyBuilder
PropertyBuilder

Generatore per la proprietà da configurare.

seed
Int32

Valore utilizzato per la prima riga caricata nella tabella.

increment
Int32

Valore incrementale aggiunto al valore Identity della riga precedente caricata.

Restituisce

Stessa istanza del generatore in modo che più chiamate possano essere concatenati.

Attributi

Si applica a

UseSqlServerIdentityColumn<TProperty>(PropertyBuilder<TProperty>)

Configura la proprietà chiave per l'uso della funzionalità IDENTITY SQL Server per generare valori per le nuove entità, quando la destinazione è SQL Server. Questo metodo imposta la proprietà su 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)

Parametri di tipo

TProperty

Tipo della proprietà configurata.

Parametri

propertyBuilder
PropertyBuilder<TProperty>

Generatore per la proprietà da configurare.

Restituisce

Stessa istanza del generatore in modo che più chiamate possano essere concatenati.

Si applica a

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

Attenzione

Use UseIdentityColumn

Configura la proprietà chiave per l'uso della funzionalità IDENTITY SQL Server per generare valori per le nuove entità, quando la destinazione è SQL Server. Questo metodo imposta la proprietà su 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)

Parametri di tipo

TProperty

Tipo della proprietà configurata.

Parametri

propertyBuilder
PropertyBuilder<TProperty>

Generatore per la proprietà da configurare.

seed
Int32

Valore utilizzato per la prima riga caricata nella tabella.

increment
Int32

Valore incrementale aggiunto al valore Identity della riga precedente caricata.

Restituisce

Stessa istanza del generatore in modo che più chiamate possano essere concatenati.

Attributi

Si applica a