SqlServerModelExtensions.SetIdentitySeed Methode

Definition

Überlädt

SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean)

Legt den Standardidentitätskern fest.

SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean)

Legt den Standardidentitätskern fest.

SetIdentitySeed(IMutableModel, Nullable<Int32>)

Legt den Standardidentitätskern fest.

SetIdentitySeed(IMutableModel, Nullable<Int64>)

Legt den Standardidentitätskern fest.

SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean)

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

Legt den Standardidentitätskern fest.

public static long? SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, long? seed, bool fromDataAnnotation = false);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int64> * bool -> Nullable<int64>
<Extension()>
Public Function SetIdentitySeed (model As IConventionModel, seed As Nullable(Of Long), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Long)

Parameter

model
IConventionModel

Das Modell.

seed
Nullable<Int64>

Der festzulegende Wert.

fromDataAnnotation
Boolean

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

Gibt zurück

Der konfigurierte Wert.

Gilt für:

SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean)

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

Legt den Standardidentitätskern fest.

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

Parameter

model
IConventionModel

Das Modell.

seed
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:

SetIdentitySeed(IMutableModel, Nullable<Int32>)

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

Legt den Standardidentitätskern fest.

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

Parameter

model
IMutableModel

Das Modell.

seed
Nullable<Int32>

Der festzulegende Wert.

Gilt für:

SetIdentitySeed(IMutableModel, Nullable<Int64>)

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

Legt den Standardidentitätskern fest.

public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, long? seed);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<int64> -> unit
<Extension()>
Public Sub SetIdentitySeed (model As IMutableModel, seed As Nullable(Of Long))

Parameter

model
IMutableModel

Das Modell.

seed
Nullable<Int64>

Der festzulegende Wert.

Gilt für: