共用方式為


MigrationsSqlGenerator.SequenceOptions 方法

定義

多載

SequenceOptions(AlterSequenceOperation, IModel, MigrationCommandListBuilder)

在 中產生設定序列的 AlterSequenceOperation SQL 片段。

SequenceOptions(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

在 中產生設定序列的 CreateSequenceOperation SQL 片段。

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

使用指定的選項產生設定序列的 SQL 片段。

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

使用指定的選項產生設定序列的 SQL 片段。

SequenceOptions(AlterSequenceOperation, IModel, MigrationCommandListBuilder)

在 中產生設定序列的 AlterSequenceOperation SQL 片段。

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)

在 中產生設定序列的 CreateSequenceOperation SQL 片段。

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 片段的命令產生器。

適用於