EntityTypeConfiguration.AddProperty Method (PropertyInfo)
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
public override PrimitivePropertyConfiguration AddProperty(
PropertyInfo propertyInfo
)
public:
virtual PrimitivePropertyConfiguration^ AddProperty(
PropertyInfo^ propertyInfo
) override
override AddProperty :
propertyInfo:PropertyInfo -> PrimitivePropertyConfiguration
Public Overrides Function AddProperty (
propertyInfo As PropertyInfo
) As PrimitivePropertyConfiguration
Parameters
propertyInfo
Type: System.Reflection.PropertyInfoThe backing CLR property.
Return Value
Type: System.Web.Http.OData.Builder.PrimitivePropertyConfiguration
Returns the PrimitivePropertyConfiguration of the added property.
See Also
EntityTypeConfiguration Class
System.Web.Http.OData.Builder Namespace
Return to top