StructuralTypeConfiguration.AddNavigationProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a non-contained EDM navigation property to this entity type.
public virtual Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration AddNavigationProperty (System.Reflection.PropertyInfo navigationProperty, Microsoft.OData.Edm.EdmMultiplicity multiplicity);
abstract member AddNavigationProperty : System.Reflection.PropertyInfo * Microsoft.OData.Edm.EdmMultiplicity -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration
override this.AddNavigationProperty : System.Reflection.PropertyInfo * Microsoft.OData.Edm.EdmMultiplicity -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration
Public Overridable Function AddNavigationProperty (navigationProperty As PropertyInfo, multiplicity As EdmMultiplicity) As NavigationPropertyConfiguration
Parameters
- navigationProperty
- PropertyInfo
The backing CLR property.
- multiplicity
- EdmMultiplicity
The EdmMultiplicity of the navigation property.
Returns
Returns the NavigationPropertyConfiguration of the added property.