Share via


StructuralTypeConfiguration.AddEnumProperty(PropertyInfo) Method

Definition

Adds an enum property to this edm type.

public virtual Microsoft.AspNet.OData.Builder.EnumPropertyConfiguration AddEnumProperty (System.Reflection.PropertyInfo propertyInfo);
abstract member AddEnumProperty : System.Reflection.PropertyInfo -> Microsoft.AspNet.OData.Builder.EnumPropertyConfiguration
override this.AddEnumProperty : System.Reflection.PropertyInfo -> Microsoft.AspNet.OData.Builder.EnumPropertyConfiguration
Public Overridable Function AddEnumProperty (propertyInfo As PropertyInfo) As EnumPropertyConfiguration

Parameters

propertyInfo
PropertyInfo

The property being added.

Returns

The EnumPropertyConfiguration so that the property can be configured further.

Applies to