Jazyk

SqlServerModelBuilderExtensions.HasIdentityColumnSeed Metoda

Definice

Přetížení

Název Description
HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

Nakonfiguruje výchozí počáteční hodnotu pro SQL Server IDENTITY.

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

Nakonfiguruje výchozí počáteční hodnotu pro SQL Server IDENTITY.

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

Zdroj:
SqlServerModelBuilderExtensions.cs
Zdroj:
SqlServerModelBuilderExtensions.cs
Zdroj:
SqlServerModelBuilderExtensions.cs

Nakonfiguruje výchozí počáteční hodnotu pro SQL Server IDENTITY.

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

Parametry

modelBuilder
IConventionModelBuilder

Tvůrce modelů.

seed
Nullable<Int32>

Hodnota použitá pro úplně první řádek načtený do 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.

Platí pro

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

Zdroj:
SqlServerModelBuilderExtensions.cs
Zdroj:
SqlServerModelBuilderExtensions.cs
Zdroj:
SqlServerModelBuilderExtensions.cs
Zdroj:
SqlServerModelBuilderExtensions.cs
Zdroj:
SqlServerModelBuilderExtensions.cs
Zdroj:
SqlServerModelBuilderExtensions.cs

Nakonfiguruje výchozí počáteční hodnotu pro SQL Server IDENTITY.

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

Parametry

modelBuilder
IConventionModelBuilder

Tvůrce modelů.

seed
Nullable<Int64>

Hodnota použitá pro úplně první řádek načtený do 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