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
- propertyInfo
Type: System.Reflection.PropertyInfo
The backing CLR property.
Return Value
Type: System.Web.Http.OData.Builder.CollectionPropertyConfiguration
Returns the CollectionPropertyConfiguration of the added property.