MigrationBuilder.RestartSequence 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RestartSequence(String, Int64, String) |
RestartSequenceOperation建置 以重新開機現有的序列。 |
RestartSequence(String, Nullable<Int64>, String) |
RestartSequenceOperation建置 以重新開機現有的序列。 |
RestartSequence(String, Int64, String)
RestartSequenceOperation建置 以重新開機現有的序列。
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation> RestartSequence (string name, long startValue = 1, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation> RestartSequence (string name, long startValue = 1, string? schema = default);
abstract member RestartSequence : string * int64 * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation>
override this.RestartSequence : string * int64 * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation>
Public Overridable Function RestartSequence (name As String, Optional startValue As Long = 1, Optional schema As String = Nothing) As OperationBuilder(Of RestartSequenceOperation)
參數
- name
- String
序列的名稱。
- startValue
- Int64
序列開始的值,預設為 1。
- schema
- String
包含序列的架構,或使用 null
預設架構。
傳回
允許將批註加入至作業的產生器。
備註
如需詳細資訊和範例 ,請參閱資料庫移轉 。
適用於
RestartSequence(String, Nullable<Int64>, String)
RestartSequenceOperation建置 以重新開機現有的序列。
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation> RestartSequence (string name, long? startValue = default, string? schema = default);
abstract member RestartSequence : string * Nullable<int64> * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation>
override this.RestartSequence : string * Nullable<int64> * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation>
Public Overridable Function RestartSequence (name As String, Optional startValue As Nullable(Of Long) = Nothing, Optional schema As String = Nothing) As OperationBuilder(Of RestartSequenceOperation)
參數
- name
- String
序列的名稱。
- schema
- String
包含序列的架構,或使用 null
預設架構。
傳回
允許將批註加入至作業的產生器。
備註
如需詳細資訊和範例 ,請參閱資料庫移轉 。