ODataConventionModelBuilder.AddEnumType(Type) Method

Definition

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.

Applies to