다음을 통해 공유


SqlServerModelBuilderExtensions.HasIdentityColumnSeed 메서드

정의

오버로드

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

SQL Server IDENTITY에 대한 기본 시드를 구성합니다.

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

SQL Server IDENTITY에 대한 기본 시드를 구성합니다.

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

SQL Server IDENTITY에 대한 기본 시드를 구성합니다.

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

매개 변수

modelBuilder
IConventionModelBuilder

모델 작성기입니다.

seed
Nullable<Int32>

테이블에 로드된 첫 번째 행에 사용되는 값입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

구성이 적용 null 된 경우 동일한 작성기가 instance. 그렇지 않으면 입니다.

적용 대상

HasIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

SQL Server IDENTITY에 대한 기본 시드를 구성합니다.

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

매개 변수

modelBuilder
IConventionModelBuilder

모델 작성기입니다.

seed
Nullable<Int64>

테이블에 로드된 첫 번째 행에 사용되는 값입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

구성이 적용 null 된 경우 동일한 작성기가 instance. 그렇지 않으면 입니다.

설명

자세한 내용과 예제는 엔터티 형식 및 관계 모델링EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스 액세스를 참조하세요.

적용 대상