Condividi tramite


SqlServerPropertyBuilderExtensions.CanSetIdentityColumnIncrement Metodo

Definizione

Overload

CanSetIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

Restituisce un valore che indica se il valore specificato può essere impostato come incremento per SQL Server IDENTITY.

CanSetIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, StoreObjectIdentifier, Boolean)

Restituisce un valore che indica se il valore specificato può essere impostato come incremento per SQL Server IDENTITY per una determinata tabella.

CanSetIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

Restituisce un valore che indica se il valore specificato può essere impostato come incremento per SQL Server IDENTITY.

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

Parametri

propertyBuilder
IConventionPropertyBuilder

Generatore per la proprietà configurata.

increment
Nullable<Int32>

Valore incrementale aggiunto al valore identity della riga precedente caricata.

fromDataAnnotation
Boolean

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

Restituisce

truese il valore specificato può essere impostato come incremento predefinito per SQL Server IDENTITY.

Commenti

Vedere Modellazione di tipi di entità e relazionie accesso a SQL Server e Azure SQL database con EF Core per altre informazioni ed esempi.

Si applica a

CanSetIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, StoreObjectIdentifier, Boolean)

Restituisce un valore che indica se il valore specificato può essere impostato come incremento per SQL Server IDENTITY per una determinata tabella.

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

Parametri

propertyBuilder
IConventionPropertyBuilder

Generatore per la proprietà configurata.

increment
Nullable<Int32>

Valore incrementale aggiunto al valore identity della riga precedente caricata.

storeObject
StoreObjectIdentifier

Identificatore di tabella.

fromDataAnnotation
Boolean

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

Restituisce

truese il valore specificato può essere impostato come incremento predefinito per SQL Server IDENTITY.

Commenti

Vedere Modellazione di tipi di entità e relazionie accesso a SQL Server e Azure SQL database con EF Core per altre informazioni ed esempi.

Si applica a