SqlServerMigrationsSqlGenerator.SequenceOptions 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SequenceOptions(String, String, SequenceOperation, IModel, MigrationCommandListBuilder) |
生成一个 SQL 片段,该片段使用给定选项配置序列。 |
SequenceOptions(String, String, Int32, Nullable<Int64>, Nullable<Int64>, Boolean, IModel, MigrationCommandListBuilder) |
生成一个 SQL 片段,该片段使用给定选项配置序列。 |
SequenceOptions(String, String, SequenceOperation, IModel, MigrationCommandListBuilder)
生成一个 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, Int32, Nullable<Int64>, Nullable<Int64>, Boolean, IModel, MigrationCommandListBuilder)
生成一个 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
递增以在序列中生成下一个值的量。
- cycle
- Boolean
指示一旦达到最大值,序列是否将再次启动。
- model
- IModel
如果存在没有模型的操作,则 null
可能是目标模型。
- builder
- MigrationCommandListBuilder
用于添加 SQL 片段的命令生成器。