Jaa


EnumTypeConfiguration Class

Definition

Represents an IEdmEnumType that can be built using ODataModelBuilder.

public class EnumTypeConfiguration : Microsoft.AspNet.OData.Builder.IEdmTypeConfiguration
type EnumTypeConfiguration = class
    interface IEdmTypeConfiguration
Public Class EnumTypeConfiguration
Implements IEdmTypeConfiguration
Inheritance
EnumTypeConfiguration
Implements

Constructors

EnumTypeConfiguration(ODataModelBuilder, Type)

Initializes a new instance of the EnumTypeConfiguration class.

Properties

AddedExplicitly

Gets or sets a value that is true if the type's name or namespace was set by the user; false if it was inferred through conventions.

ClrType

Gets the backing CLR Type.

ExplicitMembers

Gets the collection of explicitly added members.

FullName

Gets the full name of this EDM type.

IgnoredMembers

Gets the members from the backing CLR type that are to be ignored on this enum type.

IsFlags

Gets the IsFlags of this enum type. If it is true, a combined value is equivalent to the bitwise OR of the discrete values.

Kind

Gets the EdmTypeKind of this EDM type.

Members

Gets all possible members(defined values) of this enum type, which will be added to the EDM model as edm:Member elements.

ModelBuilder

Get the ODataModelBuilder.

Name

Gets or sets the name of this EDM type.

Namespace

Gets or sets the namespace of this EDM type.

RemovedMembers

Gets the collection of explicitly removed members.

UnderlyingType

Gets this enum underlying Type.

Methods

AddMember(Enum)

Adds an enum member to this enum type.

RemoveMember(Enum)

Removes the given member.

Applies to