MigrationsSqlGenerator.SequenceOptions 方法

定义

重载

SequenceOptions(AlterSequenceOperation, IModel, MigrationCommandListBuilder)

生成在 中配置序列的 AlterSequenceOperationSQL 片段。

SequenceOptions(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

生成在 中配置序列的 CreateSequenceOperationSQL 片段。

SequenceOptions(String, String, SequenceOperation, IModel, MigrationCommandListBuilder)

生成一个 SQL 片段,该片段使用给定选项配置序列。

SequenceOptions(String, String, Int32, Nullable<Int64>, Nullable<Int64>, Boolean, IModel, MigrationCommandListBuilder)

生成一个 SQL 片段,该片段使用给定选项配置序列。

SequenceOptions(AlterSequenceOperation, IModel, MigrationCommandListBuilder)

生成在 中配置序列的 AlterSequenceOperationSQL 片段。

protected virtual void SequenceOptions (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void SequenceOptions (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member SequenceOptions : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.SequenceOptions : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub SequenceOptions (operation As AlterSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

参数

operation
AlterSequenceOperation

操作。

model
IModel

如果不存在模型的操作,则 null 为 的目标模型。

builder
MigrationCommandListBuilder

用于添加 SQL 片段的命令生成器。

适用于

SequenceOptions(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

生成在 中配置序列的 CreateSequenceOperationSQL 片段。

protected virtual void SequenceOptions (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void SequenceOptions (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member SequenceOptions : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.SequenceOptions : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub SequenceOptions (operation As CreateSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

参数

operation
CreateSequenceOperation

操作。

model
IModel

如果不存在模型的操作,则 null 为 的目标模型。

builder
MigrationCommandListBuilder

用于添加 SQL 片段的命令生成器。

适用于

SequenceOptions(String, String, SequenceOperation, IModel, MigrationCommandListBuilder)

生成一个 SQL 片段,该片段使用给定选项配置序列。

protected virtual void SequenceOptions (string schema, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.SequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void SequenceOptions (string? schema, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.SequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member SequenceOptions : string * string * Microsoft.EntityFrameworkCore.Migrations.Operations.SequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.SequenceOptions : string * string * Microsoft.EntityFrameworkCore.Migrations.Operations.SequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable 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 virtual void SequenceOptions (string schema, string name, int increment, long? minimumValue, long? maximumValue, bool cycle, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member SequenceOptions : string * string * int * Nullable<int64> * Nullable<int64> * bool * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.SequenceOptions : string * string * int * Nullable<int64> * Nullable<int64> * bool * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable 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

在序列中生成下一个值的递增量。

minimumValue
Nullable<Int64>

序列支持的最小值;如果未指定任何值, null 则为 。

maximumValue
Nullable<Int64>

序列支持的最大值;如果未指定任何值, null 则为 。

cycle
Boolean

指示一旦达到最大值,序列是否将再次启动。

model
IModel

如果不存在模型的操作,则 null 为 的目标模型。

builder
MigrationCommandListBuilder

用于添加 SQL 片段的命令生成器。

适用于