Jazyk

SqlServerPropertyBuilderExtensions.HasIdentityColumnSeed Metoda

Definice

Přetížení

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

Nakonfiguruje počáteční hodnoty pro SQL Server IDENTITY.

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, Boolean)

Nakonfiguruje počáteční hodnoty pro SQL Server IDENTITY.

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, StoreObjectIdentifier, Boolean)

Nakonfiguruje počáteční hodnotu pro SQL Server IDENTITY pro konkrétní tabulku.

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

Nakonfiguruje počáteční hodnoty pro SQL Server IDENTITY.

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

Parametry

propertyBuilder
IConventionPropertyBuilder

Tvůrce pro konfigurovanou vlastnost.

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(IConventionPropertyBuilder, Nullable<Int64>, Boolean)

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

Nakonfiguruje počáteční hodnoty pro SQL Server IDENTITY.

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

Parametry

propertyBuilder
IConventionPropertyBuilder

Tvůrce pro konfigurovanou vlastnost.

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

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, StoreObjectIdentifier, Boolean)

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

Nakonfiguruje počáteční hodnotu pro SQL Server IDENTITY pro konkrétní tabulku.

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

Parametry

propertyBuilder
IConventionPropertyBuilder

Tvůrce pro konfigurovanou vlastnost.

seed
Nullable<Int64>

Hodnota použitá pro úplně první řádek načtený do tabulky.

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