Share via


EntitySetConfiguration<TEntityType>.HasOptionalBinding Method

Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method HasOptionalBinding<TTargetType, TDerivedEntityType>(Expression<Func<TDerivedEntityType, TTargetType>>, String) Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasOptionalBinding<TTargetType, TDerivedEntityType>(Expression<Func<TDerivedEntityType, TTargetType>>, EntitySetConfiguration<TTargetType>) Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasOptionalBinding<TTargetType>(Expression<Func<TEntityType, TTargetType>>, String) Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasOptionalBinding<TTargetType>(Expression<Func<TEntityType, TTargetType>>, EntitySetConfiguration<TTargetType>) Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.

Top

See Also

Reference

EntitySetConfiguration<TEntityType> Class

System.Web.Http.OData.Builder Namespace