SqlServerPropertyExtensions.SetIdentityIncrement Метод

Определение

Перегрузки

SetIdentityIncrement(IMutableProperty, Nullable<Int32>)

Задает приращение удостоверения.

SetIdentityIncrement(IMutableRelationalPropertyOverrides, Nullable<Int32>)

Задает приращение идентификатора для определенной таблицы.

SetIdentityIncrement(IConventionProperty, Nullable<Int32>, Boolean)

Задает приращение удостоверения.

SetIdentityIncrement(IConventionRelationalPropertyOverrides, Nullable<Int32>, Boolean)

Задает приращение идентификатора для определенной таблицы.

SetIdentityIncrement(IMutableProperty, Nullable<Int32>, StoreObjectIdentifier)

Задает приращение идентификатора для определенной таблицы.

SetIdentityIncrement(IConventionProperty, Nullable<Int32>, StoreObjectIdentifier, Boolean)

Задает приращение идентификатора для определенной таблицы.

SetIdentityIncrement(IMutableProperty, Nullable<Int32>)

Задает приращение удостоверения.

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

Параметры

property
IMutableProperty

Свойство.

increment
Nullable<Int32>

Задаваемое значение.

Применяется к

SetIdentityIncrement(IMutableRelationalPropertyOverrides, Nullable<Int32>)

Задает приращение идентификатора для определенной таблицы.

public static void SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IMutableRelationalPropertyOverrides overrides, int? increment);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IMutableRelationalPropertyOverrides * Nullable<int> -> unit
<Extension()>
Public Sub SetIdentityIncrement (overrides As IMutableRelationalPropertyOverrides, increment As Nullable(Of Integer))

Параметры

overrides
IMutableRelationalPropertyOverrides

Свойство переопределяется.

increment
Nullable<Int32>

Задаваемое значение.

Применяется к

SetIdentityIncrement(IConventionProperty, Nullable<Int32>, Boolean)

Задает приращение удостоверения.

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

Параметры

property
IConventionProperty

Свойство.

increment
Nullable<Int32>

Задаваемое значение.

fromDataAnnotation
Boolean

Указывает, была ли указана конфигурация с помощью заметки к данным.

Возвращаемое значение

Настроенное или заданное значение.

Применяется к

SetIdentityIncrement(IConventionRelationalPropertyOverrides, Nullable<Int32>, Boolean)

Задает приращение идентификатора для определенной таблицы.

public static int? SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IConventionRelationalPropertyOverrides overrides, int? increment, bool fromDataAnnotation = false);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IConventionRelationalPropertyOverrides * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Function SetIdentityIncrement (overrides As IConventionRelationalPropertyOverrides, increment As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

Параметры

overrides
IConventionRelationalPropertyOverrides

Свойство переопределяется.

increment
Nullable<Int32>

Задаваемое значение.

fromDataAnnotation
Boolean

Указывает, была ли указана конфигурация с помощью заметки к данным.

Возвращаемое значение

Настроенное или заданное значение.

Применяется к

SetIdentityIncrement(IMutableProperty, Nullable<Int32>, StoreObjectIdentifier)

Задает приращение идентификатора для определенной таблицы.

public static void SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? increment, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> * StoreObjectIdentifier -> unit
<Extension()>
Public Sub SetIdentityIncrement (property As IMutableProperty, increment As Nullable(Of Integer), ByRef storeObject As StoreObjectIdentifier)

Параметры

property
IMutableProperty

Свойство.

increment
Nullable<Int32>

Задаваемое значение.

storeObject
StoreObjectIdentifier

Идентификатор таблицы, содержащей столбец.

Применяется к

SetIdentityIncrement(IConventionProperty, Nullable<Int32>, StoreObjectIdentifier, Boolean)

Задает приращение идентификатора для определенной таблицы.

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

Параметры

property
IConventionProperty

Свойство.

increment
Nullable<Int32>

Задаваемое значение.

storeObject
StoreObjectIdentifier

Идентификатор таблицы, содержащей столбец.

fromDataAnnotation
Boolean

Указывает, была ли указана конфигурация с помощью заметки к данным.

Возвращаемое значение

Настроенное или заданное значение.

Применяется к