Aracılığıyla paylaş


SqlServerPropertyBuilderExtensions.HasIdentityColumnSeed Yöntem

Tanım

Aşırı Yüklemeler

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, Boolean)

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

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, StoreObjectIdentifier, Boolean)

Belirli bir tablo için SQL Server IDENTITY için tohumu yapılandırılır.

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder HasIdentityColumnSeed (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, int? seed, bool fromDataAnnotation = false);
static member HasIdentityColumnSeed : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function HasIdentityColumnSeed (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 belirtilmediğinden emin olun.

Döndürülenler

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

Şunlara uygulanır

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, Boolean)

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

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

Parametreler

propertyBuilder
IConventionPropertyBuilder

Yapılandırılan özelliğin oluşturucusu.

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

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

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, StoreObjectIdentifier, Boolean)

Belirli bir tablo için SQL Server IDENTITY için tohumu yapılandırılır.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasIdentityColumnSeed (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, long? seed, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member HasIdentityColumnSeed : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int64> * StoreObjectIdentifier * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function HasIdentityColumnSeed (propertyBuilder As IConventionPropertyBuilder, seed As Nullable(Of Long), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parametreler

propertyBuilder
IConventionPropertyBuilder

Yapılandırılan özelliğin oluşturucusu.

seed
Nullable<Int64>

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

storeObject
StoreObjectIdentifier

Tablo tanımlayıcısı.

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.

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