Condividi tramite


SqlServerPropertyBuilderExtensions.HasIdentityColumnSeed Metodo

Definizione

Overload

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

Configura il valore di inizializzazione per SQL Server IDENTITY.

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, Boolean)

Configura il valore di inizializzazione per SQL Server IDENTITY.

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, StoreObjectIdentifier, Boolean)

Configura il valore di inizializzazione per SQL Server IDENTITY per una determinata tabella.

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

Configura il valore di inizializzazione per SQL Server IDENTITY.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder HasIdentityColumnSeed (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, int? seed, bool fromDataAnnotation = false);
static member HasIdentityColumnSeed : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function HasIdentityColumnSeed (propertyBuilder As IConventionPropertyBuilder, seed As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parametri

propertyBuilder
IConventionPropertyBuilder

Generatore per la proprietà da configurare.

seed
Nullable<Int32>

Valore utilizzato per la prima riga caricata nella tabella.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Stessa istanza del generatore se la configurazione è stata applicata; in caso contrario, null .

Si applica a

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, Boolean)

Configura il valore di inizializzazione per SQL Server IDENTITY.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasIdentityColumnSeed (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, long? seed, bool fromDataAnnotation = false);
static member HasIdentityColumnSeed : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function HasIdentityColumnSeed (propertyBuilder As IConventionPropertyBuilder, seed As Nullable(Of Long), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parametri

propertyBuilder
IConventionPropertyBuilder

Generatore per la proprietà da configurare.

seed
Nullable<Int64>

Valore utilizzato per la prima riga caricata nella tabella.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Stessa istanza del generatore se la configurazione è stata applicata; in caso contrario, null .

Commenti

Per altre informazioni ed esempi, vedere Modellazione di tipi e relazioni di entitàe Accesso a SQL Server e Azure SQL database con EF Core.

Si applica a

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, StoreObjectIdentifier, Boolean)

Configura il valore di inizializzazione per SQL Server IDENTITY per una determinata tabella.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasIdentityColumnSeed (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, long? seed, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member HasIdentityColumnSeed : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int64> * StoreObjectIdentifier * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function HasIdentityColumnSeed (propertyBuilder As IConventionPropertyBuilder, seed As Nullable(Of Long), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parametri

propertyBuilder
IConventionPropertyBuilder

Generatore per la proprietà da configurare.

seed
Nullable<Int64>

Valore utilizzato per la prima riga caricata nella tabella.

storeObject
StoreObjectIdentifier

Identificatore di tabella.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Stessa istanza del generatore se la configurazione è stata applicata; in caso contrario, null .

Commenti

Per altre informazioni ed esempi, vedere Modellazione di tipi e relazioni di entitàe Accesso a SQL Server e Azure SQL database con EF Core.

Si applica a