Language

EdmTypeDefinition Class

Definition

Represents the definition of an Edm type definition.

public class EdmTypeDefinition : Microsoft.OData.Edm.EdmType, Microsoft.OData.Edm.IEdmFullNamedElement, Microsoft.OData.Edm.IEdmTypeDefinition
type EdmTypeDefinition = class
    inherit EdmType
    interface IEdmTypeDefinition
    interface IEdmSchemaType
    interface IEdmSchemaElement
    interface IEdmNamedElement
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
    interface IEdmType
    interface IEdmFullNamedElement
Public Class EdmTypeDefinition
Inherits EdmType
Implements IEdmFullNamedElement, IEdmTypeDefinition
Inheritance
EdmTypeDefinition
Implements

Constructors

Name Description
EdmTypeDefinition(String, String, EdmPrimitiveTypeKind)

Initializes a new instance of the EdmTypeDefinition class with Int32 underlying type.

EdmTypeDefinition(String, String, IEdmPrimitiveType)

Initializes a new instance of the EdmTypeDefinition class.

Properties

Name Description
FullName

Gets the full name of this schema element.

Name

Gets the name of this type definition.

Namespace

Gets the namespace this schema element belongs to.

SchemaElementKind

Gets the kind of this schema element.

TypeKind

Gets the kind of this type.

UnderlyingType

Gets the underlying type of this type definition.

Methods

Name Description
ToString()

Returns the text representation of the current object.

(Inherited from EdmType)

Extension Methods

Name Description
AsActualType(IEdmType)

Returns the actual type of the given type. If the given type is type definition, the actual type is its underlying type; otherwise, return the given type itself.

AsElementType(IEdmType)

Gets the element type of a collection definition or itself of a non-collection definition referred to by the type reference.

Errors(IEdmElement)

Gets the errors, if any, that belong to this element or elements that this element contains. For example errors for a structural type include the errors of the type itself and errors of its declared properties. The method does not analyze elements referenced by this element. For example errors of a property do not include errors from its type.

FullName(IEdmSchemaElement)

Gets the full name of the element.

FullTypeName(IEdmType)

Gets the full name of the definition referred to by the type reference.

GetSymbolicString(IEdmVocabularyAnnotatable)

Gets the symbolic string of an annotated element. In the next breaking change, it's better to add a property into IEdmVocabularyAnnotatable.

IsBad(IEdmElement)

Returns true if this element contains errors returned by the Errors(IEdmElement) method.

IsBinary(IEdmType)

Returns true if this definition refers to a binary type.

IsDecimal(IEdmType)

Returns true if this definition refers to a decimal type.

IsEquivalentTo(IEdmType, IEdmType)

Returns true if the compared type is semantically equivalent to this type. Schema types (IEdmSchemaType) are compared by their object refs.

IsGeography(IEdmType)

Returns true if this definition refers to a geography type.

IsGeometry(IEdmType)

Returns true if this definition refers to a geometry type.

IsOnSameTypeHierarchyLineWith(IEdmType, IEdmType)

Determines whether thisType is the same as otherType, or thisType derives from otherType, or otherType derives from thisType.

IsOpen(IEdmType)

Returns true if the definition of this reference is open.

IsOrInheritsFrom(IEdmType, IEdmType)

Determines if a type is equivalent to or derived from another type.

IsSpatial(IEdmType)

Returns true if this definition refers to a spatial type.

IsStream(IEdmType)

Returns true if this reference refers to a stream type.

IsString(IEdmType)

Returns true if this definition refers to a string type.

IsTemporal(IEdmType)

Returns true if this definition refers to a temporal type.

IsUntyped(IEdmType)

Returns true if this definition refers to an untyped type.

Location(IEdmElement)

Gets the location of this element.

ShortQualifiedName(IEdmSchemaElement)

Gets the Short Qualified name of the element.

ToTraceString(IEdmSchemaElement)

Returns the text representation of the current object.

ToTraceString(IEdmSchemaType)

Returns the text representation of the current object.

ToTraceString(IEdmType)

Returns the text representation of the current object.

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

Gets an annotatable element's vocabulary annotations as seen from a particular model.

Applies to