Compartir a través de


MigrationBuilder.AlterTable Método

Definición

Sobrecargas

AlterTable(String, String)

Crea un AlterTableOperation objeto para modificar una tabla existente.

AlterTable(String, String, String, String)

Crea un AlterTableOperation objeto para modificar una tabla existente.

AlterTable(String, String)

Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs

Crea un AlterTableOperation objeto para modificar una tabla existente.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation> AlterTable (string name, string schema = default);
abstract member AlterTable : string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation>
override this.AlterTable : string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation>
Public Overridable Function AlterTable (name As String, Optional schema As String = Nothing) As AlterOperationBuilder(Of AlterTableOperation)

Parámetros

name
String

El nombre de la tabla.

schema
String

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

Devoluciones

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

Se aplica a

AlterTable(String, String, String, String)

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

Crea un AlterTableOperation objeto para modificar una tabla existente.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation> AlterTable (string name, string schema = default, string comment = default, string oldComment = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation> AlterTable (string name, string? schema = default, string? comment = default, string? oldComment = default);
abstract member AlterTable : string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation>
override this.AlterTable : string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation>
Public Overridable Function AlterTable (name As String, Optional schema As String = Nothing, Optional comment As String = Nothing, Optional oldComment As String = Nothing) As AlterOperationBuilder(Of AlterTableOperation)

Parámetros

name
String

El nombre de la tabla.

schema
String

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

comment
String

Comentario que se va a asociar a la tabla.

oldComment
String

Comentario anterior que se va a asociar a la tabla.

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