Aracılığıyla paylaş


SqlServerPropertyBuilderExtensions.ForSqlServerHasIdentitySeed Yöntem

Tanım

Dikkat

Use HasIdentityColumnSeed

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

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

Parametreler

propertyBuilder
IConventionPropertyBuilder

Yapılandırılan özelliğin 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 belirtilmedidiğini gösterir.

Döndürülenler

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

Öznitelikler

Şunlara uygulanır