How to: Edit and Delete Navigation Properties (Entity Data Model Tools)
Navigation properties are shortcut properties that are used to locate the entities at the ends of an association in a conceptual model. Navigation properties can be created when you create an association between two entity types. For more information, see How to: Create and Modify Associations (Entity Data Model Tools).
Note |
---|
If foreign keys are not exposed on entity types in a conceptual model, navigation properties are required to access entity types at the end of an association. For more information, see Defining and Managing Relationships (Entity Framework). |
This topic shows how to edit and delete navigation properties.
Editing a Navigation Property
To edit a navigation property
Select a navigation property on the Entity Designer surface.
Information about the navigation property is displayed in the Visual Studio Properties window.
Change the property settings in the Properties window.
Deleting a Navigation Property
If foreign keys are not exposed on entity types in the conceptual model, deleting a navigation property may make the corresponding association traversable in only one direction or not traversable at all. For more information, see Defining and Managing Relationships (Entity Framework).
To delete a navigation property
- Right-click a navigation property on the Entity Designer surface and select Delete.
See Also
Tasks
How to: Create and Modify Associations (Entity Data Model Tools)
Concepts
ADO.NET Entity Data Model Designer
Other Resources
Entity Data Model Tools Tasks
NavigationProperty Element (CSDL)