Compartir a través de


SqlServerModelExtensions.SetIdentityIncrement Método

Definición

Sobrecargas

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

Establece el incremento de identidad predeterminado.

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

Establece el incremento de identidad predeterminado.

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

Establece el incremento de identidad predeterminado.

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

Modelo.

increment
Nullable<Int32>

Valor que se va a establecer.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

El valor configurado.

Se aplica a

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

Establece el incremento de identidad predeterminado.

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

Modelo.

increment
Nullable<Int32>

Valor que se va a establecer.

Se aplica a