EdmEntityType Class

Represents a definition of an EDM entity type.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Edm.Library.EdmElement
    Microsoft.Data.Edm.Library.EdmType
      Microsoft.Data.Edm.Library.EdmStructuredType
        Microsoft.Data.Edm.Library.EdmEntityType

Namespace:  Microsoft.Data.Edm.Library
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
Public Class EdmEntityType _
    Inherits EdmStructuredType _
    Implements IEdmEntityType, IEdmStructuredType, IEdmSchemaType, IEdmType,  _
    IEdmTerm, IEdmSchemaElement, IEdmNamedElement, IEdmVocabularyAnnotatable, IEdmElement
'Usage
Dim instance As EdmEntityType
public class EdmEntityType : EdmStructuredType, 
    IEdmEntityType, IEdmStructuredType, IEdmSchemaType, IEdmType, IEdmTerm, 
    IEdmSchemaElement, IEdmNamedElement, IEdmVocabularyAnnotatable, IEdmElement
public ref class EdmEntityType : public EdmStructuredType, 
    IEdmEntityType, IEdmStructuredType, IEdmSchemaType, IEdmType, IEdmTerm, 
    IEdmSchemaElement, IEdmNamedElement, IEdmVocabularyAnnotatable, IEdmElement
type EdmEntityType =  
    class 
        inherit EdmStructuredType 
        interface IEdmEntityType 
        interface IEdmStructuredType 
        interface IEdmSchemaType 
        interface IEdmType 
        interface IEdmTerm 
        interface IEdmSchemaElement 
        interface IEdmNamedElement 
        interface IEdmVocabularyAnnotatable 
        interface IEdmElement 
    end
public class EdmEntityType extends EdmStructuredType implements IEdmEntityType, IEdmStructuredType, IEdmSchemaType, IEdmType, IEdmTerm, IEdmSchemaElement, IEdmNamedElement, IEdmVocabularyAnnotatable, IEdmElement

The EdmEntityType type exposes the following members.

Constructors

  Name Description
Public method EdmEntityType(String, String) Initializes a new instance of the EdmEntityType class.
Public method EdmEntityType(String, String, IEdmEntityType) Initializes a new instance of the EdmEntityType class.
Public method EdmEntityType(String, String, IEdmEntityType, Boolean, Boolean) Initializes a new instance of the EdmEntityType class.

Top

Properties

  Name Description
Public property BaseType Gets the type from which the current type directly inherits. (Inherited from EdmStructuredType.)
Public property DeclaredKey Gets the structural properties of the entity type that make up the entity key.
Public property DeclaredProperties Gets the collection of declared properties. (Inherited from EdmStructuredType.)
Public property IsAbstract Gets a value that indicates whether the type is abstract. (Inherited from EdmStructuredType.)
Public property IsOpen Gets a value that indicates whether the type is visible. (Inherited from EdmStructuredType.)
Public property Name Gets the name of this entity type.
Public property Namespace Gets the namespace of this entity type.
Protected property PropertiesDictionary Gets the key and value properties. (Inherited from EdmStructuredType.)
Public property SchemaElementKind Gets the kind of this schema element.
Public property TermKind Gets the kind of this term.
Public property TypeKind Gets the kind of this type. (Overrides EdmType.TypeKind.)

Top

Methods

  Name Description
Public method AddBidirectionalNavigation Creates and adds a navigation property to this type and adds its navigation partner to the navigation target type.
Public method AddKeys(IEdmStructuralProperty[]) Adds the keyProperties to the key of this entity type.
Public method AddKeys(IEnumerable<IEdmStructuralProperty>) Adds the keyProperties to the key of this entity type.
Public method AddProperty Adds the specified property from the type. (Inherited from EdmStructuredType.)
Public method AddStructuralProperty(String, EdmPrimitiveTypeKind) Creates and adds a nullable structural property to this type. (Inherited from EdmStructuredType.)
Public method AddStructuralProperty(String, IEdmTypeReference) Creates and adds a structural property to this type. (Inherited from EdmStructuredType.)
Public method AddStructuralProperty(String, EdmPrimitiveTypeKind, Boolean) Creates and adds a nullable structural property to this type. (Inherited from EdmStructuredType.)
Public method AddStructuralProperty(String, IEdmTypeReference, String, EdmConcurrencyMode) Creates and adds a structural property to this type. (Inherited from EdmStructuredType.)
Public method AddUnidirectionalNavigation(EdmNavigationPropertyInfo) Creates and adds a unidirectional navigation property to this type. Default partner property is created, but not added to the navigation target type.
Public method AddUnidirectionalNavigation(EdmNavigationPropertyInfo, EdmNavigationPropertyInfo) Creates and adds a unidirectional navigation property to this type. Navigation property partner is created, but not added to the navigation target type.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FindProperty Searches the property with the specified name. (Inherited from EdmStructuredType.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Creates and returns a string representation EdmType class. (Inherited from EdmType.)

Top

Extension Methods

  Name Description
Public Extension Method BaseEntityType Gets the base entity type. (Defined by ExtensionMethods.)
Public Extension Method DeclaredNavigationProperties Gets the declared navigation properties with the specified type. (Defined by ExtensionMethods.)
Public Extension Method DeclaredStructuralProperties Gets the declared structural properties with the specified type. (Defined by ExtensionMethods.)
Public Extension Method Errors 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. (Defined by ValidationExtensionMethods.)
Public Extension Method FullName Gets the full name with the specified element. (Defined by ExtensionMethods.)
Public Extension Method HasDeclaredKeyProperty Checks whether the given entity type has the property as one of the key properties. (Defined by ExtensionMethods.)
Public Extension Method InheritsFrom Determines whether the potential base type is in the inheritance hierarchy of the type being tested. (Defined by EdmTypeSemantics.)
Public Extension Method IsBad Indicates whether this element contains errors returned by the Errors(IEdmElement) method. (Defined by ValidationExtensionMethods.)
Public Extension Method IsEquivalentTo Indicates a value whether the compared type is semantically equivalent to this type. (Defined by EdmElementComparer.)
Public Extension Method IsOrInheritsFrom Determines whether a type is equivalent to or derived from another type. (Defined by EdmTypeSemantics.)
Public Extension Method IsSpatial Determines whether this definition refers to a spatial type. (Defined by EdmTypeSemantics.)
Public Extension Method Key Gets the key with the specified type. (Defined by ExtensionMethods.)
Public Extension Method Location Gets the location of the specified item. (Defined by ExtensionMethods.)
Public Extension Method NavigationProperties Gets the navigation properties with the specified type. (Defined by ExtensionMethods.)
Public Extension Method Properties Gets the properties of the specified type. (Defined by ExtensionMethods.)
Public Extension Method StructuralProperties Gets the structural properties with the specified type. (Defined by ExtensionMethods.)
Public Extension Method ToTraceString() Overloaded. Returns the text representation of the current object. (Defined by ToTraceStringExtensionMethods.)
Public Extension Method ToTraceString() Overloaded. Returns the text representation of the current object. (Defined by ToTraceStringExtensionMethods.)
Public Extension Method ToTraceString() Overloaded. Returns the text representation of the current object. (Defined by ToTraceStringExtensionMethods.)
Public Extension Method VocabularyAnnotations Gets an annotatable element's vocabulary annotations as seen from a particular model. (Defined by ExtensionMethods.)

Top

Remarks

No content here will be updated; please do not add material here.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Edm.Library Namespace