Jaa


StructuralTypeConfiguration.AddContainedNavigationProperty Method

Definition

Adds a contained EDM navigation property to this entity type.

public virtual Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration AddContainedNavigationProperty (System.Reflection.PropertyInfo navigationProperty, Microsoft.OData.Edm.EdmMultiplicity multiplicity);
abstract member AddContainedNavigationProperty : System.Reflection.PropertyInfo * Microsoft.OData.Edm.EdmMultiplicity -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration
override this.AddContainedNavigationProperty : System.Reflection.PropertyInfo * Microsoft.OData.Edm.EdmMultiplicity -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration
Public Overridable Function AddContainedNavigationProperty (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