Condividi tramite


MigrationBuilder.AlterSequence Metodo

Definizione

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
minValue
Nullable<Int64>
maxValue
Nullable<Int64>
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.

minValue
Nullable<Int64>

Valore minimo della sequenza o null se non specificato.

maxValue
Nullable<Int64>

Valore massimo della sequenza o null se non specificato.

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.

oldMinValue
Nullable<Int64>

Valore minimo precedente della sequenza o null se non specificato.

oldMaxValue
Nullable<Int64>

Valore massimo precedente della sequenza o null se non specificato.

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 .

Si applica a