Class DropCollectionOperation
Drops the whole collection, and everything in it.
Named by its stored name rather than taken from the model, because by the time an entity stops being mapped there is no model entry left to ask. Which also means nothing checks that this is the collection you meant — it is the one operation here that cannot be undone by running something else afterwards.
public sealed class DropCollectionOperation : MigrationOperation
- Inheritance
-
DropCollectionOperation
- Inherited Members
Constructors
DropCollectionOperation(Type, string)
Drops the whole collection, and everything in it.
Named by its stored name rather than taken from the model, because by the time an entity stops being mapped there is no model entry left to ask. Which also means nothing checks that this is the collection you meant — it is the one operation here that cannot be undone by running something else afterwards.
public DropCollectionOperation(Type entityType, string name)
Parameters
Properties
Name
The stored name of the collection to drop.
public string Name { get; }