Aracılığıyla paylaş


SqlServerModelBuilderExtensions.HasIdentityColumnSeed Yöntem

Tanım

Aşırı Yüklemeler

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

SQL Server IDENTITY için varsayılan tohumu yapılandırıyor.

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

SQL Server IDENTITY için varsayılan tohumu yapılandırıyor.

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

SQL Server IDENTITY için varsayılan tohumu yapılandırıyor.

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

Parametreler

modelBuilder
IConventionModelBuilder

Model oluşturucu.

seed
Nullable<Int32>

Tabloya yüklenen ilk satır için kullanılan değer.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Yapılandırma uygulandıysa aynı oluşturucu örneği, null aksi takdirde.

Şunlara uygulanır

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

SQL Server IDENTITY için varsayılan tohumu yapılandırıyor.

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

Parametreler

modelBuilder
IConventionModelBuilder

Model oluşturucu.

seed
Nullable<Int64>

Tabloya yüklenen ilk satır için kullanılan değer.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Yapılandırma uygulandıysa aynı oluşturucu örneği, null aksi takdirde.

Açıklamalar

Daha fazla bilgi ve örnek için bkz. Varlık türlerini ve ilişkilerini modellemeve EF Core ile SQL Server ve Azure SQL veritabanlarına erişme.

Şunlara uygulanır