Share via


EntityTypeConfiguration<TEntityType>.ContainsMany<TTargetEntity> Method (Expression<Func<TEntityType, IEnumerable<TTargetEntity>>>)

 

Configures a relationship from this entity type to a contained collection navigation property.

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public NavigationPropertyConfiguration ContainsMany<TTargetEntity>(
    Expression<Func<TEntityType, IEnumerable<TTargetEntity>>> navigationPropertyExpression
)
where TTargetEntity : class
public:
generic<typename TTargetEntity>
where TTargetEntity : ref class
NavigationPropertyConfiguration^ ContainsMany(
    Expression<Func<TEntityType, IEnumerable<TTargetEntity>^>^>^ navigationPropertyExpression
)
member ContainsMany<'TTargetEntity when 'TTargetEntity : not struct> : 
        navigationPropertyExpression:Expression<Func<'TEntityType, IEnumerable<'TTargetEntity>>> -> NavigationPropertyConfiguration
Public Function ContainsMany(Of TTargetEntity As Class) (
    navigationPropertyExpression As Expression(Of Func(Of TEntityType, IEnumerable(Of TTargetEntity)))
) As NavigationPropertyConfiguration

Parameters

Return Value

Type: System.Web.OData.Builder.NavigationPropertyConfiguration

A configuration object that can be used to further configure the relationship.

Type Parameters

  • TTargetEntity
    The type of the entity at the other end of the relationship.

See Also

EntityTypeConfiguration<TEntityType> Class
System.Web.OData.Builder Namespace

Return to top