SqlServerModelExtensions.SetIdentityIncrement Método

Definição

Sobrecargas

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

Define o incremento de identidade padrão.

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

Define o incremento de identidade padrão.

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

Define o incremento de identidade padrão.

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)

Parâmetros

model
IConventionModel

O modelo.

increment
Nullable<Int32>

O valor a ser definido.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Retornos

O valor configurado.

Aplica-se a

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

Define o incremento de identidade padrão.

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))

Parâmetros

model
IMutableModel

O modelo.

increment
Nullable<Int32>

O valor a ser definido.

Aplica-se a