EntityTypeConfiguration.AddProperty Method
Adds a new EDM primitive 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 AddProperty ( _
propertyInfo As PropertyInfo _
) As PrimitivePropertyConfiguration
'Usage
Dim instance As EntityTypeConfiguration
Dim propertyInfo As PropertyInfo
Dim returnValue As PrimitivePropertyConfiguration
returnValue = instance.AddProperty(propertyInfo)
public override PrimitivePropertyConfiguration AddProperty(
PropertyInfo propertyInfo
)
public:
virtual PrimitivePropertyConfiguration^ AddProperty(
PropertyInfo^ propertyInfo
) override
abstract AddProperty :
propertyInfo:PropertyInfo -> PrimitivePropertyConfiguration
override AddProperty :
propertyInfo:PropertyInfo -> PrimitivePropertyConfiguration
public override function AddProperty(
propertyInfo : PropertyInfo
) : PrimitivePropertyConfiguration
Parameters
- propertyInfo
Type: System.Reflection.PropertyInfo
The backing CLR property.
Return Value
Type: System.Web.Http.OData.Builder.PrimitivePropertyConfiguration
Returns the PrimitivePropertyConfiguration of the added property.