How to: Delete Objects from the Storage Model (Entity Data Model Tools)
This topic describes how to use the ADO.NET Entity Data Model Designer (Entity Designer) to delete EntityType and Function elements from the store schema definition language (SSDL) section of an .edmx file. For more information, see EntityType Element (SSDL), Function Element (SSDL), and .edmx File Overview (Entity Framework).
The following procedure assumes that you have an .edmx file open in the Entity Designer.
Note |
---|
In addition to deleting elements from the SSDL section of the .edmx file, the procedures below also delete any mappings to the targeted entity type or function. |
To delete an EntityType or Function element from the SSDL
Right-click an empty area of the Entity Designer and select Model Browser.
The Model Browser window appears.
Expand the tree view of the .edmx file.
Expand the Model.Store node.
Expand the Tables/Views node or the Stored Procedures node.
Right-click the table/view or stored procedure that corresponds to the EntityType or Function element you want to delete.
Select Delete.
See Also
Tasks
How to: Create and Modify Entity Types (Entity Data Model Tools)
Concepts
ADO.NET Entity Data Model Designer