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