SqlServerModelExtensions.SetIdentityIncrement Methode

Definition

Überlädt

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

Legt den Standardidentitätsinkrement fest.

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

Legt den Standardidentitätsinkrement fest.

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs

Legt den Standardidentitätsinkrement fest.

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)

Parameter

model
IConventionModel

Das Modell.

increment
Nullable<Int32>

Der festzulegende Wert.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der konfigurierte Wert.

Gilt für:

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs
Quelle:
SqlServerModelExtensions.cs

Legt den Standardidentitätsinkrement fest.

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

Parameter

model
IMutableModel

Das Modell.

increment
Nullable<Int32>

Der festzulegende Wert.

Gilt für: