Aracılığıyla paylaş


SqlServerModelBuilderExtensions.ForSqlServerHasIdentitySeed Yöntem

Tanım

Dikkat

Use HasIdentityColumnSeed

SQL Server IDENTITY için varsayılan tohumu 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şturucusu.

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 belirtilmediğinden emin olun.

Döndürülenler

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

Öznitelikler

Şunlara uygulanır