ODataConventionModelBuilder.AddEnumType(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers an enum type as part of the model and returns an object that can be used to configure the enum type.
public override Microsoft.AspNet.OData.Builder.EnumTypeConfiguration AddEnumType (Type type);
override this.AddEnumType : Type -> Microsoft.AspNet.OData.Builder.EnumTypeConfiguration
Public Overrides Function AddEnumType (type As Type) As EnumTypeConfiguration
Parameters
- type
- Type
The type to be registered or configured.
Returns
The configuration object for the specified enum type.