Share via


EdmSingleton Class

Definition

Represents an EDM singleton.

public class EdmSingleton : Microsoft.OData.Edm.EdmNavigationSource, Microsoft.OData.Edm.IEdmSingleton
type EdmSingleton = class
    inherit EdmNavigationSource
    interface IEdmSingleton
    interface IEdmEntityContainerElement
    interface IEdmNamedElement
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
    interface IEdmNavigationSource
Public Class EdmSingleton
Inherits EdmNavigationSource
Implements IEdmSingleton
Inheritance
Implements

Constructors

EdmSingleton(IEdmEntityContainer, String, IEdmEntityType)

Initializes a new instance of the EdmSingleton class.

Properties

Container

Gets the container of this singleton.

ContainerElementKind

Gets the kind of element of this container element.

Name

Gets the name of this element.

(Inherited from EdmNamedElement)
NavigationPropertyBindings

Gets the navigation targets of this navigation source.

(Inherited from EdmNavigationSource)
Path

Gets the path that a navigation property targets.

Type

Gets the type of this navigation source.

Methods

AddNavigationTarget(IEdmNavigationProperty, IEdmNavigationSource, IEdmPathExpression)

Adds a navigation target, specifying the destination entity set of a navigation property of an entity in this navigation source.

(Inherited from EdmNavigationSource)
AddNavigationTarget(IEdmNavigationProperty, IEdmNavigationSource)

Adds a navigation target, specifying the destination entity set of a navigation property of an entity in this navigation source.

(Inherited from EdmNavigationSource)
FindNavigationPropertyBindings(IEdmNavigationProperty)

Finds the bindings of the navigation property.

(Inherited from EdmNavigationSource)
FindNavigationTarget(IEdmNavigationProperty, IEdmPathExpression)

Finds the navigation source that a navigation property targets.

(Inherited from EdmNavigationSource)
FindNavigationTarget(IEdmNavigationProperty)

Finds the navigation source that a navigation property targets.

(Inherited from EdmNavigationSource)

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.

EntityType(IEdmNavigationSource)

Return the entity type of the navigation source.

FullNavigationSourceName(IEdmNavigationSource)

Returns the fully qualified name of a navigation source.

Location(IEdmElement)

Gets the location of this element.

NavigationSourceKind(IEdmNavigationSource)

Return the navigation kind of the navigation source.

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

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

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