Bagikan melalui


SqlServerPropertyExtensions.SetIdentitySeed Metode

Definisi

Overload

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

Mengatur benih identitas untuk tabel tertentu.

SetIdentitySeed(IMutableProperty, Nullable<Int64>, StoreObjectIdentifier)

Mengatur benih identitas untuk tabel tertentu.

SetIdentitySeed(IConventionRelationalPropertyOverrides, Nullable<Int64>, Boolean)

Mengatur benih identitas untuk tabel tertentu.

SetIdentitySeed(IConventionProperty, Nullable<Int64>, Boolean)

Mengatur benih identitas.

SetIdentitySeed(IMutableProperty, Nullable<Int32>)

Mengatur benih identitas.

SetIdentitySeed(IMutableRelationalPropertyOverrides, Nullable<Int64>)

Mengatur benih identitas untuk tabel tertentu.

SetIdentitySeed(IMutableProperty, Nullable<Int64>)

Mengatur benih identitas.

SetIdentitySeed(IConventionProperty, Nullable<Int32>, Boolean)

Mengatur benih identitas.

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

Mengatur benih identitas untuk tabel tertentu.

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)

Parameter

property
IConventionProperty

Properti .

seed
Nullable<Int64>

Nilai yang akan ditetapkan.

storeObject
StoreObjectIdentifier

Pengidentifikasi tabel yang berisi kolom .

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Nilai yang dikonfigurasi.

Berlaku untuk

SetIdentitySeed(IMutableProperty, Nullable<Int64>, StoreObjectIdentifier)

Mengatur benih identitas untuk tabel tertentu.

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)

Parameter

property
IMutableProperty

Properti .

seed
Nullable<Int64>

Nilai yang akan ditetapkan.

storeObject
StoreObjectIdentifier

Pengidentifikasi tabel yang berisi kolom .

Berlaku untuk

SetIdentitySeed(IConventionRelationalPropertyOverrides, Nullable<Int64>, Boolean)

Mengatur benih identitas untuk tabel tertentu.

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)

Parameter

overrides
IConventionRelationalPropertyOverrides

Properti akan mengambil alih.

seed
Nullable<Int64>

Nilai yang akan ditetapkan.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Nilai yang dikonfigurasi.

Berlaku untuk

SetIdentitySeed(IConventionProperty, Nullable<Int64>, Boolean)

Mengatur benih identitas.

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)

Parameter

property
IConventionProperty

Properti .

seed
Nullable<Int64>

Nilai yang akan ditetapkan.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Nilai yang dikonfigurasi.

Berlaku untuk

SetIdentitySeed(IMutableProperty, Nullable<Int32>)

Mengatur benih identitas.

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))

Parameter

property
IMutableProperty

Properti .

seed
Nullable<Int32>

Nilai yang akan ditetapkan.

Berlaku untuk

SetIdentitySeed(IMutableRelationalPropertyOverrides, Nullable<Int64>)

Mengatur benih identitas untuk tabel tertentu.

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))

Parameter

overrides
IMutableRelationalPropertyOverrides

Properti akan mengambil alih.

seed
Nullable<Int64>

Nilai yang akan ditetapkan.

Berlaku untuk

SetIdentitySeed(IMutableProperty, Nullable<Int64>)

Mengatur benih identitas.

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))

Parameter

property
IMutableProperty

Properti .

seed
Nullable<Int64>

Nilai yang akan ditetapkan.

Berlaku untuk

SetIdentitySeed(IConventionProperty, Nullable<Int32>, Boolean)

Mengatur benih identitas.

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)

Parameter

property
IConventionProperty

Properti .

seed
Nullable<Int32>

Nilai yang akan ditetapkan.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Nilai yang dikonfigurasi.

Berlaku untuk