SqlServerPropertyBuilderExtensions.CanSetIdentityColumnSeed Yöntem

Tanım

Aşırı Yüklemeler

CanSetIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

Verilen değerin IDENTITY için çekirdek olarak ayarlanıp ayarlana SQL Server döndürür.

CanSetIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, Boolean)

Verilen değerin IDENTITY için çekirdek olarak ayarlanıp ayarlana SQL Server döndürür.

CanSetIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

Verilen değerin IDENTITY için çekirdek olarak ayarlanıp ayarlana SQL Server döndürür.

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

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 veri ek açıklaması kullanılarak belirtilmemiş olup olmadığını gösterir.

Döndürülenler

Boolean

trueverilen değerin IDENTITY için çekirdek olarak ayarlan SQL Server.

Şunlara uygulanır

CanSetIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, Boolean)

Verilen değerin IDENTITY için çekirdek olarak ayarlanıp ayarlana SQL Server döndürür.

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

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 veri ek açıklaması kullanılarak belirtilmemiş olup olmadığını gösterir.

Döndürülenler

Boolean

trueverilen değerin IDENTITY için çekirdek olarak ayarlan SQL Server.

Açıklamalar

Daha fazla bilgi için bkz.Varlık türlerini ve ilişkilerini modelleme ve SQL Server ile SQL Azure veritabanlarına EF Core erişim.

Şunlara uygulanır