Jaa


StructuralTypeConfiguration.AddNavigationProperty Method

Definition

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.

Applies to