EntityType.AddNavigationProperty(NavigationProperty) Method

Definition

Adds the specified navigation property to the members of this type. The navigation property is added regardless of the read-only flag.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public void AddNavigationProperty (System.Data.Entity.Core.Metadata.Edm.NavigationProperty property);
member this.AddNavigationProperty : System.Data.Entity.Core.Metadata.Edm.NavigationProperty -> unit
Public Sub AddNavigationProperty (property As NavigationProperty)

Parameters

property
NavigationProperty

The navigation property to be added.

Attributes

Applies to