共用方式為


SqlServerPropertyExtensions.SetIdentitySeed 方法

定義

多載

SetIdentitySeed(IConventionProperty, Nullable<Int64>, StoreObjectIdentifier, Boolean)

設定特定資料表的身分識別種子。

SetIdentitySeed(IMutableProperty, Nullable<Int64>, StoreObjectIdentifier)

設定特定資料表的身分識別種子。

SetIdentitySeed(IConventionRelationalPropertyOverrides, Nullable<Int64>, Boolean)

設定特定資料表的身分識別種子。

SetIdentitySeed(IConventionProperty, Nullable<Int64>, Boolean)

設定身分識別種子。

SetIdentitySeed(IMutableProperty, Nullable<Int32>)

設定身分識別種子。

SetIdentitySeed(IMutableRelationalPropertyOverrides, Nullable<Int64>)

設定特定資料表的身分識別種子。

SetIdentitySeed(IMutableProperty, Nullable<Int64>)

設定身分識別種子。

SetIdentitySeed(IConventionProperty, Nullable<Int32>, Boolean)

設定身分識別種子。

SetIdentitySeed(IConventionProperty, Nullable<Int64>, StoreObjectIdentifier, Boolean)

設定特定資料表的身分識別種子。

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

參數

property
IConventionProperty

屬性。

seed
Nullable<Int64>

要設定的值。

storeObject
StoreObjectIdentifier

包含資料行之資料表的識別碼。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於

SetIdentitySeed(IMutableProperty, Nullable<Int64>, StoreObjectIdentifier)

設定特定資料表的身分識別種子。

public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, long? seed, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int64> * StoreObjectIdentifier -> unit
<Extension()>
Public Sub SetIdentitySeed (property As IMutableProperty, seed As Nullable(Of Long), ByRef storeObject As StoreObjectIdentifier)

參數

property
IMutableProperty

屬性。

seed
Nullable<Int64>

要設定的值。

storeObject
StoreObjectIdentifier

包含資料行之資料表的識別碼。

適用於

SetIdentitySeed(IConventionRelationalPropertyOverrides, Nullable<Int64>, Boolean)

設定特定資料表的身分識別種子。

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

參數

overrides
IConventionRelationalPropertyOverrides

屬性會覆寫。

seed
Nullable<Int64>

要設定的值。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於

SetIdentitySeed(IConventionProperty, Nullable<Int64>, Boolean)

設定身分識別種子。

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

參數

property
IConventionProperty

屬性。

seed
Nullable<Int64>

要設定的值。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於

SetIdentitySeed(IMutableProperty, Nullable<Int32>)

設定身分識別種子。

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

參數

property
IMutableProperty

屬性。

seed
Nullable<Int32>

要設定的值。

適用於

SetIdentitySeed(IMutableRelationalPropertyOverrides, Nullable<Int64>)

設定特定資料表的身分識別種子。

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

參數

overrides
IMutableRelationalPropertyOverrides

屬性會覆寫。

seed
Nullable<Int64>

要設定的值。

適用於

SetIdentitySeed(IMutableProperty, Nullable<Int64>)

設定身分識別種子。

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

參數

property
IMutableProperty

屬性。

seed
Nullable<Int64>

要設定的值。

適用於

SetIdentitySeed(IConventionProperty, Nullable<Int32>, Boolean)

設定身分識別種子。

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

參數

property
IConventionProperty

屬性。

seed
Nullable<Int32>

要設定的值。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於