Sprache

SqlServerPropertyBuilderExtensions.ForSqlServerHasIdentityIncrement Methode

Definition

Achtung

Use HasIdentityColumnIncrement

Konfiguriert die Inkrementierung für SQL Server IDENTITY.

[System.Obsolete("Use HasIdentityColumnIncrement")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder ForSqlServerHasIdentityIncrement(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, int? increment, bool fromDataAnnotation = false);
[<System.Obsolete("Use HasIdentityColumnIncrement")>]
static member ForSqlServerHasIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function ForSqlServerHasIdentityIncrement (propertyBuilder As IConventionPropertyBuilder, increment As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parameter

propertyBuilder
IConventionPropertyBuilder

Der Generator für die zu konfigurierende Eigenschaft.

increment
Nullable<Int32>

Der inkrementelle Wert, der zum Identitätswert der zuvor geladenen Zeile addiert wird.

fromDataAnnotation
Boolean

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

Gibt zurück

Die gleiche Generatorinstanz, wenn die Konfiguration angewendet wurde, null andernfalls.

Attribute

Gilt für: