Compartir a través de


MigrationBuilder.CreateSequence Método

Definición

Sobrecargas

CreateSequence(String, String, Int64, Int32, Nullable<Int64>, Nullable<Int64>, Boolean)

Crea un CreateSequenceOperation objeto para crear una secuencia.

CreateSequence<T>(String, String, Int64, Int32, Nullable<Int64>, Nullable<Int64>, Boolean)

Crea un CreateSequenceOperation objeto para crear una secuencia.

CreateSequence(String, String, Int64, Int32, Nullable<Int64>, Nullable<Int64>, Boolean)

Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs

Crea un CreateSequenceOperation objeto para crear una secuencia.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation> CreateSequence (string name, string schema = default, long startValue = 1, int incrementBy = 1, long? minValue = default, long? maxValue = default, bool cyclic = false);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation> CreateSequence (string name, string? schema = default, long startValue = 1, int incrementBy = 1, long? minValue = default, long? maxValue = default, bool cyclic = false);
abstract member CreateSequence : string * string * int64 * int * Nullable<int64> * Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation>
override this.CreateSequence : string * string * int64 * int * Nullable<int64> * Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation>
Public Overridable Function CreateSequence (name As String, Optional schema As String = Nothing, Optional startValue As Long = 1, 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 CreateSequenceOperation)

Parámetros

name
String

Nombre de secuencia.

schema
String

Esquema que contiene la secuencia o null para usar el esquema predeterminado.

startValue
Int64

Valor en el que se iniciará la secuencia, cuyo valor predeterminado es 1.

incrementBy
Int32

Cantidad que se va a incrementar al generar el siguiente valor en la secuencia, que tiene como valor predeterminado 1.

minValue
Nullable<Int64>

Valor mínimo de la secuencia, o null si no se especifica.

maxValue
Nullable<Int64>

Valor máximo de la secuencia, o null si no se especifica.

cyclic
Boolean

Indica si la secuencia se volverá a iniciar cuando se alcance el valor máximo.

Devoluciones

Generador para permitir que las anotaciones se agreguen a la operación.

Comentarios

Consulte Migraciones de bases de datos para obtener más información y ejemplos.

Se aplica a

CreateSequence<T>(String, String, Int64, Int32, Nullable<Int64>, Nullable<Int64>, Boolean)

Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs

Crea un CreateSequenceOperation objeto para crear una secuencia.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation> CreateSequence<T> (string name, string schema = default, long startValue = 1, int incrementBy = 1, long? minValue = default, long? maxValue = default, bool cyclic = false);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation> CreateSequence<T> (string name, string? schema = default, long startValue = 1, int incrementBy = 1, long? minValue = default, long? maxValue = default, bool cyclic = false);
abstract member CreateSequence : string * string * int64 * int * Nullable<int64> * Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation>
override this.CreateSequence : string * string * int64 * int * Nullable<int64> * Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation>
Public Overridable Function CreateSequence(Of T) (name As String, Optional schema As String = Nothing, Optional startValue As Long = 1, 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 CreateSequenceOperation)

Parámetros de tipo

T

Tipo CLR de los valores generados por la secuencia.

Parámetros

name
String

Nombre de secuencia.

schema
String

Esquema que contiene la secuencia o null para usar el esquema predeterminado.

startValue
Int64

Valor en el que se iniciará la secuencia, cuyo valor predeterminado es 1.

incrementBy
Int32

Cantidad que se va a incrementar al generar el siguiente valor en la secuencia, que tiene como valor predeterminado 1.

minValue
Nullable<Int64>

Valor mínimo de la secuencia, o null si no se especifica.

maxValue
Nullable<Int64>

Valor máximo de la secuencia, o null si no se especifica.

cyclic
Boolean

Indica si la secuencia se volverá a iniciar cuando se alcance el valor máximo.

Devoluciones

Generador para permitir que las anotaciones se agreguen a la operación.

Comentarios

Consulte Migraciones de bases de datos para obtener más información y ejemplos.

Se aplica a