Język

SqlServerModelBuilderExtensions.CanSetIdentityColumnSeed Metoda

Definicja

Przeciążenia

Nazwisko Opis
CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

Zwraca wartość wskazującą, czy dana wartość może być ustawiona jako domyślny inicjator SQL Server IDENTITY.

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

Zwraca wartość wskazującą, czy dana wartość może być ustawiona jako domyślny inicjator SQL Server IDENTITY.

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

Źródło:
SqlServerModelBuilderExtensions.cs
Źródło:
SqlServerModelBuilderExtensions.cs
Źródło:
SqlServerModelBuilderExtensions.cs

Zwraca wartość wskazującą, czy dana wartość może być ustawiona jako domyślny inicjator SQL Server IDENTITY.

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

Parametry

modelBuilder
IConventionModelBuilder

Kreator modelu.

seed
Nullable<Int32>

Wartość używana dla pierwszego wiersza załadowanego do tabeli.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

truejeśli dana wartość może być ustawiona jako inicjator SQL Server IDENTITY.

Dotyczy

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

Źródło:
SqlServerModelBuilderExtensions.cs
Źródło:
SqlServerModelBuilderExtensions.cs
Źródło:
SqlServerModelBuilderExtensions.cs
Źródło:
SqlServerModelBuilderExtensions.cs
Źródło:
SqlServerModelBuilderExtensions.cs
Źródło:
SqlServerModelBuilderExtensions.cs

Zwraca wartość wskazującą, czy dana wartość może być ustawiona jako domyślny inicjator SQL Server IDENTITY.

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

Parametry

modelBuilder
IConventionModelBuilder

Kreator modelu.

seed
Nullable<Int64>

Wartość używana dla pierwszego wiersza załadowanego do tabeli.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

truejeśli dana wartość może być ustawiona jako inicjator SQL Server IDENTITY.

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Modelowanie typów jednostek i relacji oraz Uzyskiwanie dostępu do baz danych SQL Server i Azure SQL za pomocą programu EF Core.

Dotyczy