SqlServerModelBuilderExtensions.ForSqlServerHasIdentitySeed(IConventionModelBuilder, Nullable<Int32>, Boolean) Yöntem

Tanım

Dikkat

Use HasIdentityColumnSeed

Identity için varsayılan çekirdeği SQL Server yapılandırıyor.

[System.Obsolete("Use HasIdentityColumnSeed")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder ForSqlServerHasIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, int? seed, bool fromDataAnnotation = false);
[<System.Obsolete("Use HasIdentityColumnSeed")>]
static member ForSqlServerHasIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder
<Extension()>
Public Function ForSqlServerHasIdentitySeed (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 veri ek açıklaması kullanılarak belirtilmemiş olup olmadığını gösterir.

Döndürülenler

IConventionModelBuilder

Yapılandırma uygulanmışsa aynı oluşturucu örneği, aksi takdirde null olur.

Öznitelikler

Şunlara uygulanır