Share via


EntityTypeConfiguration.AddCollectionProperty Method

Adds a new EDM collection property to this entity type.

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

Syntax

'Declaration
Public Overrides Function AddCollectionProperty ( _
    propertyInfo As PropertyInfo _
) As CollectionPropertyConfiguration
'Usage
Dim instance As EntityTypeConfiguration 
Dim propertyInfo As PropertyInfo 
Dim returnValue As CollectionPropertyConfiguration 

returnValue = instance.AddCollectionProperty(propertyInfo)
public override CollectionPropertyConfiguration AddCollectionProperty(
    PropertyInfo propertyInfo
)
public:
virtual CollectionPropertyConfiguration^ AddCollectionProperty(
    PropertyInfo^ propertyInfo
) override
abstract AddCollectionProperty : 
        propertyInfo:PropertyInfo -> CollectionPropertyConfiguration  
override AddCollectionProperty : 
        propertyInfo:PropertyInfo -> CollectionPropertyConfiguration
public override function AddCollectionProperty(
    propertyInfo : PropertyInfo
) : CollectionPropertyConfiguration

Parameters

Return Value

Type: System.Web.Http.OData.Builder.CollectionPropertyConfiguration
Returns the CollectionPropertyConfiguration of the added property.

See Also

Reference

EntityTypeConfiguration Class

System.Web.Http.OData.Builder Namespace