EntityType.AddNavigationProperty Method (NavigationProperty)
Adds the specified navigation property to the members of this type. The navigation property is added regardless of the read-only flag.
Assembly: EntityFramework (in EntityFramework.dll)
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")] public void AddNavigationProperty( NavigationProperty property )
Parameters
- property
-
Type:
System.Data.Entity.Core.Metadata.Edm.NavigationProperty
The navigation property to be added.