SqlServerPropertyBuilderExtensions.HasIdentityColumnSeed Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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.
- 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.
- 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.
- 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
Entity Framework