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.


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

  1. Right-click an empty area of the Entity Designer and select Model Browser.

    The Model Browser window appears.

  2. Expand the tree view of the .edmx file.

  3. Expand the Model.Store node.

  4. Expand the Tables/Views node or the Stored Procedures node.

  5. Right-click the table/view or stored procedure that corresponds to the EntityType or Function element you want to delete.

  6. Select Delete.

See Also


How to: Create and Modify Entity Types (Entity Data Model Tools)


ADO.NET Entity Data Model Designer

Other Resources

Entity Data Model Tools Tasks