EntityTypeConfiguration.AddNavigationProperty Method (PropertyInfo, EdmMultiplicity)
Adds a new EDM navigation property to this entity type.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual NavigationPropertyConfiguration AddNavigationProperty(
PropertyInfo navigationProperty,
EdmMultiplicity multiplicity
)
public:
virtual NavigationPropertyConfiguration^ AddNavigationProperty(
PropertyInfo^ navigationProperty,
EdmMultiplicity multiplicity
)
abstract AddNavigationProperty :
navigationProperty:PropertyInfo *
multiplicity:EdmMultiplicity -> NavigationPropertyConfiguration
override AddNavigationProperty :
navigationProperty:PropertyInfo *
multiplicity:EdmMultiplicity -> NavigationPropertyConfiguration
Public Overridable Function AddNavigationProperty (
navigationProperty As PropertyInfo,
multiplicity As EdmMultiplicity
) As NavigationPropertyConfiguration
Parameters
navigationProperty
Type: System.Reflection.PropertyInfoThe backing CLR property.
multiplicity
Type: Microsoft.Data.Edm.EdmMultiplicityThe EdmMultiplicity of the navigation property.
Return Value
Type: System.Web.Http.OData.Builder.NavigationPropertyConfiguration
Returns the NavigationPropertyConfiguration of the added property.
See Also
EntityTypeConfiguration Class
System.Web.Http.OData.Builder Namespace
Return to top