SqlServerMigrationsSqlGenerator.SequenceOptions 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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)
產生一個 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)
產生一個 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)
產生一個 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 片段的指令建構器。