Condividi tramite


SqlServerModelExtensions.SetIdentityIncrement Metodo

Definizione

Overload

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

Imposta l'incremento predefinito dell'identità.

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

Imposta l'incremento predefinito dell'identità.

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

Imposta l'incremento predefinito dell'identità.

public static void SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? increment, bool fromDataAnnotation = false);
public static int? SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? increment, bool fromDataAnnotation = false);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> unit
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Sub SetIdentityIncrement (model As IConventionModel, increment As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIdentityIncrement (model As IConventionModel, increment As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

Parametri

model
IConventionModel

Modello.

increment
Nullable<Int32>

Il valore da impostare.

fromDataAnnotation
Boolean

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

Restituisce

Il valore configurato.

Si applica a

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

Imposta l'incremento predefinito dell'identità.

public static void SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, int? increment);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<int> -> unit
<Extension()>
Public Sub SetIdentityIncrement (model As IMutableModel, increment As Nullable(Of Integer))

Parametri

model
IMutableModel

Modello.

increment
Nullable<Int32>

Il valore da impostare.

Si applica a