Jazyk

SqlServerPropertyBuilderExtensions.HasIdentityColumnIncrement Metoda

Definice

Přetížení

Název Description
HasIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

Konfiguruje přírůstek pro SQL Server IDENTITY.

HasIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, StoreObjectIdentifier, Boolean)

Konfiguruje přírůstek pro SQL Server IDENTITY pro konkrétní tabulku.

HasIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs

Konfiguruje přírůstek pro SQL Server IDENTITY.

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

Parametry

propertyBuilder
IConventionPropertyBuilder

Tvůrce pro konfigurovanou vlastnost.

increment
Nullable<Int32>

Přírůstková hodnota přidaná k hodnotě identity předchozího řádku, který byl načten.

fromDataAnnotation
Boolean

Určuje, jestli byla konfigurace zadána pomocí datové poznámky.

Návraty

Stejná instance tvůrce, pokud byla použita konfigurace, null jinak.

Poznámky

Další informace a příklady najdete v tématu Modelování typů entit a relacía přístup k databázím SQL Server a Azure SQL pomocí EF Core.

Platí pro

HasIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, StoreObjectIdentifier, Boolean)

Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs

Konfiguruje přírůstek pro SQL Server IDENTITY pro konkrétní tabulku.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasIdentityColumnIncrement(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, int? increment, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member HasIdentityColumnIncrement : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int> * StoreObjectIdentifier * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function HasIdentityColumnIncrement (propertyBuilder As IConventionPropertyBuilder, increment As Nullable(Of Integer), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parametry

propertyBuilder
IConventionPropertyBuilder

Tvůrce pro konfigurovanou vlastnost.

increment
Nullable<Int32>

Přírůstková hodnota přidaná k hodnotě identity předchozího řádku, který byl načten.

storeObject
StoreObjectIdentifier

Identifikátor tabulky.

fromDataAnnotation
Boolean

Určuje, jestli byla konfigurace zadána pomocí datové poznámky.

Návraty

Stejná instance tvůrce, pokud byla použita konfigurace, null jinak.

Poznámky

Další informace a příklady najdete v tématu Modelování typů entit a relacía přístup k databázím SQL Server a Azure SQL pomocí EF Core.

Platí pro