Compartir a través de


AlterTableOperation Clase

Definición

que MigrationOperation se va a modificar una tabla existente.

public class AlterTableOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation, Microsoft.EntityFrameworkCore.Migrations.Operations.IAlterMigrationOperation
public class AlterTableOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.TableOperation, Microsoft.EntityFrameworkCore.Migrations.Operations.IAlterMigrationOperation
[System.Diagnostics.DebuggerDisplay("ALTER TABLE {Table}")]
public class AlterTableOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.TableOperation, Microsoft.EntityFrameworkCore.Migrations.Operations.IAlterMigrationOperation
[System.Diagnostics.DebuggerDisplay("ALTER TABLE {Name}")]
public class AlterTableOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.TableOperation, Microsoft.EntityFrameworkCore.Migrations.Operations.IAlterMigrationOperation
type AlterTableOperation = class
    inherit MigrationOperation
    interface IAlterMigrationOperation
type AlterTableOperation = class
    inherit TableOperation
    interface IAlterMigrationOperation
[<System.Diagnostics.DebuggerDisplay("ALTER TABLE {Table}")>]
type AlterTableOperation = class
    inherit TableOperation
    interface IAlterMigrationOperation
[<System.Diagnostics.DebuggerDisplay("ALTER TABLE {Name}")>]
type AlterTableOperation = class
    inherit TableOperation
    interface IAlterMigrationOperation
Public Class AlterTableOperation
Inherits MigrationOperation
Implements IAlterMigrationOperation
Public Class AlterTableOperation
Inherits TableOperation
Implements IAlterMigrationOperation
Herencia
AlterTableOperation
Herencia
Herencia
Atributos
Implementaciones

Comentarios

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

Constructores

AlterTableOperation()

que MigrationOperation se va a modificar una tabla existente.

Propiedades

Comment

Comentario para esta tabla

(Heredado de TableOperation)
IsDestructiveChange

Indica si la operación podría provocar la pérdida de datos en la base de datos.

(Heredado de MigrationOperation)
IsReadOnly

Indica si el objeto actual es de solo lectura.

(Heredado de AnnotatableBase)
Item[String]

Obtiene la anotación de valor con el nombre especificado y devuelve null si no existe.

(Heredado de Annotatable)
Name

Nombre de la tabla.

Name

Nombre de la tabla.

(Heredado de TableOperation)
OldTable

Operación que representa la tabla tal como estaba antes de modificarse.

Schema

Esquema que contiene la tabla o null si se debe usar el esquema predeterminado.

Schema

Esquema que contiene la tabla o null si se debe usar el esquema predeterminado.

(Heredado de TableOperation)

Métodos

AddAnnotation(String, Annotation)

Agrega una anotación a este objeto. Produce si ya existe una anotación con el nombre especificado.

(Heredado de Annotatable)
AddAnnotation(String, Object)

Agrega una anotación a este objeto. Produce si ya existe una anotación con el nombre especificado.

(Heredado de Annotatable)
AddAnnotations(IEnumerable<IAnnotation>)

Agrega anotaciones a este objeto.

(Heredado de AnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

Agrega anotaciones a este objeto.

(Heredado de AnnotatableBase)
AddRuntimeAnnotation(String, Annotation)

Agrega una anotación en tiempo de ejecución a este objeto. Produce si ya existe una anotación con el nombre especificado.

(Heredado de AnnotatableBase)
AddRuntimeAnnotation(String, Object)

Agrega una anotación en tiempo de ejecución a este objeto. Produce si ya existe una anotación con el nombre especificado.

(Heredado de AnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

Agrega anotaciones en tiempo de ejecución a este objeto.

(Heredado de AnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

Agrega anotaciones en tiempo de ejecución a este objeto.

(Heredado de AnnotatableBase)
CreateAnnotation(String, Object)

Crea una nueva anotación.

(Heredado de Annotatable)
CreateRuntimeAnnotation(String, Object)

Crea una nueva anotación en tiempo de ejecución.

(Heredado de AnnotatableBase)
EnsureMutable()

Produce si el modelo es de solo lectura.

(Heredado de Annotatable)
EnsureReadOnly()

Produce si el modelo no es de solo lectura.

(Heredado de Annotatable)
FindAnnotation(String)

Obtiene la anotación con el nombre especificado y devuelve null si no existe.

(Heredado de Annotatable)
FindRuntimeAnnotation(String)

Obtiene la anotación en tiempo de ejecución con el nombre especificado y devuelve null si no existe.

(Heredado de AnnotatableBase)
GetAnnotation(String)

Obtiene la anotación con el nombre especificado, iniciando si no existe.

(Heredado de AnnotatableBase)
GetAnnotations()

Obtiene todas las anotaciones del objeto actual.

(Heredado de Annotatable)
GetOrAddAnnotation(String, Object)

Agrega una anotación a este objeto o devuelve la anotación existente si ya existe una con el nombre especificado.

(Heredado de Annotatable)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

Obtiene el valor de la anotación en tiempo de ejecución con el nombre especificado, agregándolo si no existe uno.

(Heredado de AnnotatableBase)
GetRuntimeAnnotations()

Obtiene todas las anotaciones en tiempo de ejecución del objeto actual.

(Heredado de AnnotatableBase)
OnAnnotationSet(String, Annotation, Annotation)

Se llama cuando se estableció o quitó una anotación.

(Heredado de Annotatable)
RemoveAnnotation(String)

Quita la anotación especificada de este objeto.

(Heredado de Annotatable)
RemoveRuntimeAnnotation(String)

Quita la anotación en tiempo de ejecución especificada de este objeto.

(Heredado de AnnotatableBase)
SetAnnotation(String, Annotation)

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

(Heredado de Annotatable)
SetAnnotation(String, Annotation, Annotation)

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

(Heredado de Annotatable)
SetAnnotation(String, Object)

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

(Heredado de Annotatable)
SetRuntimeAnnotation(String, Annotation, Annotation)

Establece la anotación en tiempo de ejecución almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

(Heredado de AnnotatableBase)
SetRuntimeAnnotation(String, Object)

Establece la anotación en tiempo de ejecución almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

(Heredado de AnnotatableBase)

Implementaciones de interfaz explícitas

IAlterMigrationOperation.OldAnnotations

OldTable objeto expuesto para examinar las anotaciones.

IAnnotatable.AddRuntimeAnnotation(String, Object)

Agrega una anotación en tiempo de ejecución a este objeto. Produce si ya existe una anotación con el nombre especificado.

(Heredado de AnnotatableBase)
IAnnotatable.FindAnnotation(String)

Obtiene la anotación con el nombre especificado y devuelve null si no existe.

(Heredado de Annotatable)
IAnnotatable.FindRuntimeAnnotation(String)

Obtiene la anotación en tiempo de ejecución con el nombre especificado y devuelve null si no existe.

(Heredado de AnnotatableBase)
IAnnotatable.GetAnnotations()

Obtiene todas las anotaciones del objeto actual.

(Heredado de Annotatable)
IAnnotatable.GetRuntimeAnnotations()

Obtiene todas las anotaciones en tiempo de ejecución del objeto actual.

(Heredado de AnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

Quita la anotación en tiempo de ejecución especificada de este objeto.

(Heredado de AnnotatableBase)
IAnnotatable.SetRuntimeAnnotation(String, Object)

Establece la anotación en tiempo de ejecución almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

(Heredado de AnnotatableBase)
IMutableAnnotatable.AddAnnotation(String, Object)

Agrega una anotación a este objeto. Produce si ya existe una anotación con el nombre especificado.

(Heredado de Annotatable)
IMutableAnnotatable.RemoveAnnotation(String)

Quita la anotación especificada de este objeto.

(Heredado de Annotatable)
IMutableAnnotatable.SetOrRemoveAnnotation(String, Object)

Establece la anotación almacenada bajo el nombre especificado. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado. Quita la anotación existente si null se proporciona.

(Heredado de Annotatable)
IReadOnlyAnnotatable.FindAnnotation(String)

Obtiene la anotación con el nombre especificado y devuelve null si no existe.

(Heredado de AnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

Obtiene todas las anotaciones del objeto actual.

(Heredado de AnnotatableBase)
IReadOnlyAnnotatable.Item[String]

Obtiene el valor de la anotación con el nombre especificado y devuelve null si no existe.

(Heredado de AnnotatableBase)
ITableMigrationOperation.Table

Tabla que contiene el destino de esta operación.

(Heredado de TableOperation)

Métodos de extensión

AnnotationsToDebugString(IAnnotatable, Int32)

Obtiene la cadena de depuración de todas las anotaciones declaradas en el objeto .

GetAnnotation(IAnnotatable, String)

Obtiene la anotación con el nombre especificado, iniciando si no existe.

AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

Agrega anotaciones a un objeto .

GetAnnotation(IMutableAnnotatable, String)

Obtiene la anotación con el nombre especificado, iniciando si no existe.

GetOrAddAnnotation(IMutableAnnotatable, String, String)

Obtiene la anotación existente con una clave determinada o agrega una nueva anotación si no existe.

SetOrRemoveAnnotation(IMutableAnnotatable, String, Object)

Establece la anotación almacenada bajo el nombre especificado. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado. Quita la anotación existente si null se proporciona.

Se aplica a