How to: Edit and Delete Navigation Properties

[This page is specific to the latest version of the Entity Framework. The latest version is available as the 'Entity Framework' NuGet package. For more information, see Entity Framework Releases and Versioning.]

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.

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.

This topic shows how to edit and delete navigation properties.

Editing a Navigation Property

To edit a navigation property

  1. Select a navigation property on the Entity Designer surface.

    Information about the navigation property is displayed in the Visual Studio  Properties  window.

  2. 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

To delete a navigation property

  1. Right-click a navigation property on the Entity Designer surface and select Delete .

See Also

Tasks

How to: Create and Modify Associations

Other Resources

ADO.NET Entity Data Model Designer
NavigationProperty Element (CSDL)

Build Date:

2013-06-19