SqlServerMigrationsSqlGenerator.SequenceOptions Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
| Имя. | Описание |
|---|---|
| SequenceOptions(String, String, SequenceOperation, IModel, MigrationCommandListBuilder) |
Создает фрагмент SQL, который настраивает последовательность с заданными параметрами. |
| SequenceOptions(String, String, SequenceOperation, IModel, MigrationCommandListBuilder, Boolean) |
Создает фрагмент SQL, который настраивает последовательность с заданными параметрами. |
| SequenceOptions(String, String, Int32, Nullable<Int64>, Nullable<Int64>, Boolean, IModel, MigrationCommandListBuilder) |
Создает фрагмент SQL, который настраивает последовательность с заданными параметрами. |
SequenceOptions(String, String, SequenceOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает фрагмент SQL, который настраивает последовательность с заданными параметрами.
protected override void SequenceOptions(string schema, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.SequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void SequenceOptions(string? schema, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.SequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.SequenceOptions : string * string * Microsoft.EntityFrameworkCore.Migrations.Operations.SequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub SequenceOptions (schema As String, name As String, operation As SequenceOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- schema
- String
Схема, содержащая последовательность или null используемую по умолчанию схему.
- name
- String
Имя последовательности.
- operation
- SequenceOperation
Параметры последовательности.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для добавления фрагмента SQL.
Применяется к
SequenceOptions(String, String, SequenceOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает фрагмент SQL, который настраивает последовательность с заданными параметрами.
protected override void SequenceOptions(string? schema, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.SequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool forAlter);
override this.SequenceOptions : string * string * Microsoft.EntityFrameworkCore.Migrations.Operations.SequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub SequenceOptions (schema As String, name As String, operation As SequenceOperation, model As IModel, builder As MigrationCommandListBuilder, forAlter As Boolean)
Параметры
- schema
- String
Схема, содержащая последовательность или null используемую по умолчанию схему.
- name
- String
Имя последовательности.
- operation
- SequenceOperation
Параметры последовательности.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для добавления фрагмента SQL.
- forAlter
- Boolean
Если trueпараметр включен, даже если используется значение по умолчанию.
Применяется к
SequenceOptions(String, String, Int32, Nullable<Int64>, Nullable<Int64>, Boolean, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает фрагмент SQL, который настраивает последовательность с заданными параметрами.
protected override void SequenceOptions(string schema, string name, int increment, long? minimumValue, long? maximumValue, bool cycle, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.SequenceOptions : string * string * int * Nullable<int64> * Nullable<int64> * bool * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub SequenceOptions (schema As String, name As String, increment As Integer, minimumValue As Nullable(Of Long), maximumValue As Nullable(Of Long), cycle As Boolean, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- schema
- String
Схема, содержащая последовательность или null используемую по умолчанию схему.
- name
- String
Имя последовательности.
- increment
- Int32
Количество добавок для создания следующего значения в последовательности.
Минимальное значение, поддерживаемое последовательностью, или null если он не указан.
Максимальное значение, поддерживаемое последовательностью, или null если он не указан.
- cycle
- Boolean
Указывает, будет ли последовательность начинаться снова после достижения максимального значения.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для добавления фрагмента SQL.