EdmEntityContainer Class

Definition

Represents an EDM entity container.

public class EdmEntityContainer : Microsoft.OData.Edm.EdmElement, Microsoft.OData.Edm.IEdmEntityContainer, Microsoft.OData.Edm.IEdmFullNamedElement
type EdmEntityContainer = class
    inherit EdmElement
    interface IEdmEntityContainer
    interface IEdmSchemaElement
    interface IEdmNamedElement
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
    interface IEdmFullNamedElement
Public Class EdmEntityContainer
Inherits EdmElement
Implements IEdmEntityContainer, IEdmFullNamedElement
Inheritance
EdmEntityContainer
Implements

Constructors

EdmEntityContainer(String, String)

Initializes a new instance of the EdmEntityContainer class.

Properties

Elements

Gets a collection of the elements of this entity container.

FullName

Gets the full name of this schema element.

Name

Gets the name of this entity container.

Namespace

Gets the namespace of this entity container.

SchemaElementKind

Gets the kind of this schema element.

Methods

AddActionImport(IEdmAction)

Creates and adds an action import to this entity container.

AddActionImport(String, IEdmAction)

Creates and adds an action import to this entity container.

AddActionImport(String, IEdmAction, IEdmExpression)

Creates and adds an action import to this entity container.

AddElement(IEdmEntityContainerElement)

Adds an entity container element to this entity container.

AddEntitySet(String, IEdmEntityType)

Creates and adds an entity set to this entity container.

AddEntitySet(String, IEdmEntityType, Boolean)

Creates and adds an entity set to this entity container.

AddFunctionImport(IEdmFunction)

Creates and adds a function import to this entity container.

AddFunctionImport(String, IEdmFunction)

Creates and adds a function import to this entity container.

AddFunctionImport(String, IEdmFunction, IEdmExpression)

Creates and adds a function import to this entity container.

AddFunctionImport(String, IEdmFunction, IEdmExpression, Boolean)

Creates and adds a function import to this entity container.

AddSingleton(String, IEdmEntityType)

Creates and adds an singleton to this entity container.

FindEntitySet(String)

Searches for an entity set with the given name in this entity container and returns null if no such set exists.

FindOperationImports(String)

Searches for operation imports with the given name in this entity container and returns null if no such operation import exists.

FindSingleton(String)

Searches for a singleton with the given name in this entity container and returns null if no such singleton exists.

Extension Methods

GetSymbolicString(IEdmVocabularyAnnotatable)

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

AllElements(IEdmEntityContainer, Int32)
EntitySets(IEdmEntityContainer)

Returns entity sets belonging to an IEdmEntityContainer.

FullName(IEdmSchemaElement)

Gets the full name of the element.

Location(IEdmElement)

Gets the location of this element.

OperationImports(IEdmEntityContainer)

Returns operation imports belonging to an IEdmEntityContainer.

ShortQualifiedName(IEdmSchemaElement)

Gets the Short Qualified name of the element.

Singletons(IEdmEntityContainer)

Returns singletons belonging to an IEdmEntityContainer.

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

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

ToTraceString(IEdmSchemaElement)

Returns the text representation of the current object.

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.

IsBad(IEdmElement)

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

Applies to