MigrationBuilder.AlterSequence Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AlterSequence(String, String, Int32, Nullable<Int64>, Nullable<Int64>, Boolean) | |
AlterSequence(String, String, Int32, Nullable<Int64>, Nullable<Int64>, Boolean, Int32, Nullable<Int64>, Nullable<Int64>, Boolean) |
Compila un oggetto AlterSequenceOperation per modificare una sequenza esistente. |
AlterSequence(String, String, Int32, Nullable<Int64>, Nullable<Int64>, Boolean)
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation> AlterSequence (string name, string schema = default, int incrementBy = 1, long? minValue = default, long? maxValue = default, bool cyclic = false);
abstract member AlterSequence : string * string * int * Nullable<int64> * Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation>
override this.AlterSequence : string * string * int * Nullable<int64> * Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation>
Public Overridable Function AlterSequence (name As String, Optional schema As String = Nothing, Optional incrementBy As Integer = 1, Optional minValue As Nullable(Of Long) = Nothing, Optional maxValue As Nullable(Of Long) = Nothing, Optional cyclic As Boolean = false) As OperationBuilder(Of AlterSequenceOperation)
Parametri
- name
- String
- schema
- String
- incrementBy
- Int32
- cyclic
- Boolean
Restituisce
Si applica a
AlterSequence(String, String, Int32, Nullable<Int64>, Nullable<Int64>, Boolean, Int32, Nullable<Int64>, Nullable<Int64>, Boolean)
- Origine:
- MigrationBuilder.cs
- Origine:
- MigrationBuilder.cs
- Origine:
- MigrationBuilder.cs
- Origine:
- MigrationBuilder.cs
- Origine:
- MigrationBuilder.cs
- Origine:
- MigrationBuilder.cs
- Origine:
- MigrationBuilder.cs
- Origine:
- MigrationBuilder.cs
- Origine:
- MigrationBuilder.cs
Compila un oggetto AlterSequenceOperation per modificare una sequenza esistente.
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation> AlterSequence (string name, string schema = default, int incrementBy = 1, long? minValue = default, long? maxValue = default, bool cyclic = false, int oldIncrementBy = 1, long? oldMinValue = default, long? oldMaxValue = default, bool oldCyclic = false);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation> AlterSequence (string name, string? schema = default, int incrementBy = 1, long? minValue = default, long? maxValue = default, bool cyclic = false, int oldIncrementBy = 1, long? oldMinValue = default, long? oldMaxValue = default, bool oldCyclic = false);
abstract member AlterSequence : string * string * int * Nullable<int64> * Nullable<int64> * bool * int * Nullable<int64> * Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation>
override this.AlterSequence : string * string * int * Nullable<int64> * Nullable<int64> * bool * int * Nullable<int64> * Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation>
Public Overridable Function AlterSequence (name As String, Optional schema As String = Nothing, Optional incrementBy As Integer = 1, Optional minValue As Nullable(Of Long) = Nothing, Optional maxValue As Nullable(Of Long) = Nothing, Optional cyclic As Boolean = false, Optional oldIncrementBy As Integer = 1, Optional oldMinValue As Nullable(Of Long) = Nothing, Optional oldMaxValue As Nullable(Of Long) = Nothing, Optional oldCyclic As Boolean = false) As AlterOperationBuilder(Of AlterSequenceOperation)
Parametri
- name
- String
Nome della sequenza.
- schema
- String
Schema che contiene la sequenza o null
per usare lo schema predefinito.
- incrementBy
- Int32
Quantità da incrementare quando si genera il valore successivo nella sequenza, impostando il valore predefinito su 1.
- cyclic
- Boolean
Indica se la sequenza verrà riattivata quando viene raggiunto il valore massimo.
- oldIncrementBy
- Int32
Importo precedente da incrementare quando si genera il valore successivo nella sequenza, il valore predefinito è 1.
- oldCyclic
- Boolean
Indica se la sequenza verrà ripresa in precedenza quando viene raggiunto il valore massimo.
Restituisce
Generatore per consentire l'aggiunta di annotazioni all'operazione.
Commenti
Per altre informazioni ed esempi, vedere Migrazioni di database .