AlterTableOperation Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Pour MigrationOperation modifier une table existante.
public class AlterTableOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation, Microsoft.EntityFrameworkCore.Migrations.Operations.IAlterMigrationOperation
[System.Diagnostics.DebuggerDisplay("ALTER TABLE {Name}")]
[System.Runtime.CompilerServices.Nullable(0)]
public class AlterTableOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.TableOperation, 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
[<System.Diagnostics.DebuggerDisplay("ALTER TABLE {Name}")>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type AlterTableOperation = class
inherit TableOperation
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
- Héritage
- Héritage
- Héritage
- Attributs
- Implémente
Remarques
Pour plus d’informations et d’exemples, consultez les migrations de base de données .
Constructeurs
| Nom | Description |
|---|---|
| AlterTableOperation() |
Pour MigrationOperation modifier une table existante. |
Propriétés
| Nom | Description |
|---|---|
| Comment |
Commentaire pour ce tableau (Hérité de TableOperation) |
| IsDestructiveChange |
Indique si l’opération peut entraîner ou non la perte de données dans la base de données. (Hérité de MigrationOperation) |
| IsReadOnly |
Indique si l’objet actuel est en lecture seule. (Hérité de AnnotatableBase) |
| Item[String] |
Obtient l’annotation de valeur avec le nom donné, en retournant |
| Name |
Nom de la table. |
| Name |
Nom de la table. (Hérité de TableOperation) |
| OldTable |
Opération représentant la table telle qu’elle était avant d’être modifiée. |
| Schema |
Schéma qui contient la table ou |
| Schema |
Schéma qui contient la table ou |
Méthodes
| Nom | Description |
|---|---|
| AddAnnotation(String, Annotation) |
Ajoute une annotation à cet objet. Lève si une annotation portant le nom spécifié existe déjà. (Hérité de Annotatable) |
| AddAnnotation(String, Object) |
Ajoute une annotation à cet objet. Lève si une annotation portant le nom spécifié existe déjà. (Hérité de Annotatable) |
| AddAnnotations(IEnumerable<IAnnotation>) |
Ajoute des annotations à cet objet. (Hérité de AnnotatableBase) |
| AddAnnotations(IReadOnlyDictionary<String,Object>) |
Ajoute des annotations à cet objet. (Hérité de AnnotatableBase) |
| AddRuntimeAnnotation(String, Annotation) |
Ajoute une annotation runtime à cet objet. Lève si une annotation portant le nom spécifié existe déjà. (Hérité de AnnotatableBase) |
| AddRuntimeAnnotation(String, Object) |
Ajoute une annotation runtime à cet objet. Lève si une annotation portant le nom spécifié existe déjà. (Hérité de AnnotatableBase) |
| AddRuntimeAnnotations(IEnumerable<Annotation>) |
Ajoute des annotations runtime à cet objet. (Hérité de AnnotatableBase) |
| AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>) |
Ajoute des annotations runtime à cet objet. (Hérité de AnnotatableBase) |
| CreateAnnotation(String, Object) |
Crée une annotation. (Hérité de Annotatable) |
| CreateRuntimeAnnotation(String, Object) |
Crée une annotation d’exécution. (Hérité de AnnotatableBase) |
| EnsureMutable() |
Lève si le modèle est en lecture seule. (Hérité de Annotatable) |
| EnsureReadOnly() |
Lève si le modèle n’est pas en lecture seule. (Hérité de Annotatable) |
| FindAnnotation(String) |
Obtient l’annotation portant le nom donné, en retournant |
| FindRuntimeAnnotation(String) |
Obtient l’annotation runtime avec le nom donné, en retournant |
| GetAnnotation(String) |
Obtient l’annotation portant le nom donné, levée s’il n’existe pas. (Hérité de AnnotatableBase) |
| GetAnnotations() |
Obtient toutes les annotations sur l’objet actuel. (Hérité de Annotatable) |
| GetOrAddAnnotation(String, Object) |
Ajoute une annotation à cet objet ou retourne l’annotation existante si l’un portant le nom spécifié existe déjà. (Hérité de Annotatable) |
| GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg) |
Obtient la valeur de l’annotation runtime avec le nom donné, en l’ajoutant si elle n’existe pas. (Hérité de AnnotatableBase) |
| GetRuntimeAnnotations() |
Obtient toutes les annotations d’exécution sur l’objet actuel. (Hérité de AnnotatableBase) |
| OnAnnotationSet(String, Annotation, Annotation) |
Appelé lorsqu’une annotation a été définie ou supprimée. (Hérité de Annotatable) |
| RemoveAnnotation(String) |
Supprime l’annotation donnée de cet objet. (Hérité de Annotatable) |
| RemoveRuntimeAnnotation(String) |
Supprime l’annotation runtime donnée de cet objet. (Hérité de AnnotatableBase) |
| SetAnnotation(String, Annotation, Annotation) |
Définit l’annotation stockée sous la clé donnée. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà. (Hérité de Annotatable) |
| SetAnnotation(String, Annotation) |
Définit l’annotation stockée sous la clé donnée. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà. (Hérité de Annotatable) |
| SetAnnotation(String, Object) |
Définit l’annotation stockée sous la clé donnée. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà. (Hérité de Annotatable) |
| SetRuntimeAnnotation(String, Annotation, Annotation) |
Définit l’annotation runtime stockée sous la clé donnée. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà. (Hérité de AnnotatableBase) |
| SetRuntimeAnnotation(String, Object) |
Définit l’annotation runtime stockée sous la clé donnée. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà. (Hérité de AnnotatableBase) |
Implémentations d’interfaces explicites
| Nom | Description |
|---|---|
| IAlterMigrationOperation.OldAnnotations |
Exposé OldTable pour examiner les annotations. |
| IAnnotatable.AddRuntimeAnnotation(String, Object) |
Ajoute une annotation runtime à cet objet. Lève si une annotation portant le nom spécifié existe déjà. (Hérité de AnnotatableBase) |
| IAnnotatable.FindAnnotation(String) |
Obtient l’annotation portant le nom donné, en retournant null s’il n’existe pas. (Hérité de Annotatable) |
| IAnnotatable.FindRuntimeAnnotation(String) |
Obtient l’annotation runtime avec le nom donné, en retournant |
| IAnnotatable.GetAnnotations() |
Obtient toutes les annotations sur l’objet actuel. (Hérité de Annotatable) |
| IAnnotatable.GetRuntimeAnnotations() |
Obtient toutes les annotations runtime sur l’objet actuel. (Hérité de AnnotatableBase) |
| IAnnotatable.RemoveRuntimeAnnotation(String) |
Supprime l’annotation runtime donnée de cet objet. (Hérité de AnnotatableBase) |
| IAnnotatable.SetRuntimeAnnotation(String, Object) |
Définit l’annotation runtime stockée sous la clé donnée. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà. (Hérité de AnnotatableBase) |
| IMutableAnnotatable.AddAnnotation(String, Object) |
Ajoute une annotation à cet objet. Lève si une annotation portant le nom spécifié existe déjà. (Hérité de Annotatable) |
| IMutableAnnotatable.RemoveAnnotation(String) |
Supprime l’annotation donnée de cet objet. (Hérité de Annotatable) |
| IMutableAnnotatable.SetOrRemoveAnnotation(String, Object) |
Définit l’annotation stockée sous le nom donné. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà. Supprime l’annotation existante si |
| IReadOnlyAnnotatable.FindAnnotation(String) |
Obtient l’annotation portant le nom donné, en retournant |
| IReadOnlyAnnotatable.GetAnnotations() |
Obtient toutes les annotations sur l’objet actuel. (Hérité de AnnotatableBase) |
| IReadOnlyAnnotatable.Item[String] |
Obtient la valeur de l’annotation portant le nom donné, en retournant |
| ITableMigrationOperation.Table |
Table qui contient la cible de cette opération. (Hérité de TableOperation) |
Méthodes d’extension
| Nom | Description |
|---|---|
| AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>) |
Ajoute des annotations à un objet. |
| AnnotationsToDebugString(IAnnotatable, Int32) |
Obtient la chaîne de débogage pour toutes les annotations déclarées sur l’objet. |
| GetAnnotation(IAnnotatable, String) |
Obtient l’annotation portant le nom donné, levée s’il n’existe pas. |
| GetAnnotation(IMutableAnnotatable, String) |
Obtient l’annotation portant le nom donné, levée s’il n’existe pas. |
| GetOrAddAnnotation(IMutableAnnotatable, String, String) |
Obtient l’annotation existante avec une clé donnée ou ajoute une nouvelle annotation si elle n’existe pas. |
| SetOrRemoveAnnotation(IMutableAnnotatable, String, Object) |
Définit l’annotation stockée sous le nom donné. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà. Supprime l’annotation existante si |