다음을 통해 공유


SqlServerModelBuilderExtensions.CanSetIdentityColumnSeed 메서드

정의

오버로드

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

지정된 값을 SQL Server IDENTITY의 기본 시드로 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

지정된 값을 SQL Server IDENTITY의 기본 시드로 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

지정된 값을 SQL Server IDENTITY의 기본 시드로 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

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

매개 변수

modelBuilder
IConventionModelBuilder

모델 작성기입니다.

seed
Nullable<Int32>

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

fromDataAnnotation
Boolean

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

반환

true지정된 값을 SQL Server IDENTITY의 시드로 설정할 수 있으면 입니다.

적용 대상

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

지정된 값을 SQL Server IDENTITY의 기본 시드로 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

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

매개 변수

modelBuilder
IConventionModelBuilder

모델 작성기입니다.

seed
Nullable<Int64>

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

fromDataAnnotation
Boolean

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

반환

true지정된 값을 SQL Server IDENTITY의 시드로 설정할 수 있으면 입니다.

설명

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

적용 대상