다음을 통해 공유


SqlServerModelExtensions.SetIdentitySeed 메서드

정의

오버로드

SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean)

기본 ID 시드를 설정합니다.

SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean)

기본 ID 시드를 설정합니다.

SetIdentitySeed(IMutableModel, Nullable<Int32>)

기본 ID 시드를 설정합니다.

SetIdentitySeed(IMutableModel, Nullable<Int64>)

기본 ID 시드를 설정합니다.

SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

기본 ID 시드를 설정합니다.

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

매개 변수

model
IConventionModel

모델입니다.

seed
Nullable<Int64>

설정할 값입니다.

fromDataAnnotation
Boolean

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

반환

구성된 값입니다.

적용 대상

SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

기본 ID 시드를 설정합니다.

public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? seed, bool fromDataAnnotation = false);
public static int? SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? seed, bool fromDataAnnotation = false);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> unit
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Sub SetIdentitySeed (model As IConventionModel, seed As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIdentitySeed (model As IConventionModel, seed As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

매개 변수

model
IConventionModel

모델입니다.

seed
Nullable<Int32>

설정할 값입니다.

fromDataAnnotation
Boolean

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

반환

구성된 값입니다.

적용 대상

SetIdentitySeed(IMutableModel, Nullable<Int32>)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

기본 ID 시드를 설정합니다.

public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, int? seed);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<int> -> unit
<Extension()>
Public Sub SetIdentitySeed (model As IMutableModel, seed As Nullable(Of Integer))

매개 변수

model
IMutableModel

모델입니다.

seed
Nullable<Int32>

설정할 값입니다.

적용 대상

SetIdentitySeed(IMutableModel, Nullable<Int64>)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

기본 ID 시드를 설정합니다.

public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, long? seed);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<int64> -> unit
<Extension()>
Public Sub SetIdentitySeed (model As IMutableModel, seed As Nullable(Of Long))

매개 변수

model
IMutableModel

모델입니다.

seed
Nullable<Int64>

설정할 값입니다.

적용 대상