Export (0) Print
Expand All

IEdmModel Interface

WCF Data Services 5.0

Defines a semantic representation of an EDM model.

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

public interface IEdmModel extends IEdmElement

The IEdmModel type exposes the following members.

  NameDescription
Public propertyDirectValueAnnotationsManagerGets the model's annotations manager.
Public propertyReferencedModels Gets the collection of models referred to by this model.
Public propertySchemaElementsGets the collection of schema elements that are contained in this model.
Public propertyVocabularyAnnotationsGets the collection of vocabulary annotations that are contained in this model.
Top

  NameDescription
Public methodFindDeclaredEntityContainerSearches for an entity container with the given name in this model and returns null if no such entity container exists.
Public methodFindDeclaredFunctionsSearches for functions with the given name in this model and returns an empty enumerable if no such function exists.
Public methodFindDeclaredTypeSearches for a type with the given name in this model and returns null if no such type exists.
Public methodFindDeclaredValueTermSearches for a value term with the given name in this model and returns null if no such value term exists.
Public methodFindDeclaredVocabularyAnnotationsSearches for vocabulary annotations specified by this model.
Public methodFindDirectlyDerivedTypes Finds a list of types that derive directly from the supplied type.
Top

  NameDescription
Public Extension MethodDirectValueAnnotationsGets the direct value annotations for an element. (Defined by ExtensionMethods.)
Public Extension MethodEntityContainersGets the entity containers belonging to this model. (Defined by ExtensionMethods.)
Public Extension MethodErrorsGets 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 MethodFindAllDerivedTypes Finds a list of types that derive from the supplied type directly or indirectly, and across models. (Defined by ExtensionMethods.)
Public Extension MethodFindEntityContainerSearches for an entity container with the given name in this model and all referenced models and returns null if no such entity container exists. (Defined by ExtensionMethods.)
Public Extension MethodFindFunctionsSearches for functions with the given name in this model and all referenced models and returns an empty enumerable if no such functions exist. (Defined by ExtensionMethods.)
Public Extension MethodFindTypeSearches for a type with the given name in this model and all referenced models and returns null if no such type exists. (Defined by ExtensionMethods.)
Public Extension MethodFindValueTermSearches for a value term with the given name in this model and all referenced models and returns null if no such value term exists. (Defined by ExtensionMethods.)
Public Extension MethodFindVocabularyAnnotations(IEdmVocabularyAnnotatable)Overloaded. Gets an annotatable element's vocabulary annotations defined in a specific model and models referenced by that model. (Defined by ExtensionMethods.)
Public Extension MethodFindVocabularyAnnotations(T)(IEdmVocabularyAnnotatable, IEdmTerm)Overloaded. Gets an annotatable element's vocabulary annotations that bind a particular term. (Defined by ExtensionMethods.)
Public Extension MethodFindVocabularyAnnotations(T)(IEdmVocabularyAnnotatable, String)Overloaded. Gets an annotatable element's vocabulary annotations that bind a particular term. (Defined by ExtensionMethods.)
Public Extension MethodFindVocabularyAnnotations(T)(IEdmVocabularyAnnotatable, IEdmTerm, String)Overloaded. Gets an annotatable element's vocabulary annotations that bind a particular term. (Defined by ExtensionMethods.)
Public Extension MethodFindVocabularyAnnotations(T)(IEdmVocabularyAnnotatable, String, String)Overloaded. Gets an annotatable element's vocabulary annotations that bind a particular term. (Defined by ExtensionMethods.)
Public Extension MethodFindVocabularyAnnotationsIncludingInheritedAnnotationsGets an annotatable element's vocabulary annotations defined in a specific model and models referenced by that model. (Defined by ExtensionMethods.)
Public Extension MethodGetAnnotationValue(IEdmElement, String, String)Overloaded. Gets an annotation value corresponding to the given namespace and name provided. (Defined by ExtensionMethods.)
Public Extension MethodGetAnnotationValue(T)(IEdmElement)Overloaded. Gets an annotation value from an annotatable element. (Defined by ExtensionMethods.)
Public Extension MethodGetAnnotationValue(T)(IEdmElement, String, String)Overloaded. Gets an annotation value corresponding to the given namespace and name provided. (Defined by ExtensionMethods.)
Public Extension MethodGetAnnotationValuesRetrieves a set of annotation values. For each requested value, returns null if no annotation with the given name exists for the given element. (Defined by ExtensionMethods.)
Public Extension MethodGetAssociationAnnotations Gets the annotations associated with the association serialized for a navigation property. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetAssociationEndName Gets the name used for the association end serialized for a navigation property. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetAssociationFullName Gets the fully-qualified name used for the association serialized for a navigation property. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetAssociationName Gets the name used for the association serialized for a navigation property. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetAssociationNamespace Gets the namespace used for the association serialized for a navigation property. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetAssociationSetAnnotations Gets the annotations associated with the association serialized for a navigation target of an entity set. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetAssociationSetName Gets the name used for the association set serialized for a navigation property of an entity set. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetDataServiceVersionGets the version used for the data service of a navigation property of an entity set. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetDocumentationGets documentation for a specified element. (Defined by ExtensionMethods.)
Public Extension MethodGetEdmVersionGets the EDM version with the specified model. (Defined by ExtensionMethods.)
Public Extension MethodGetEdmxVersionGets the version used for the edmx of a navigation property of an entity set. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetMaxDataServiceVersionGets the version of the maximum data service for a navigation property of an entity set. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetNamespaceAlias Gets the serialization alias for a given namespace. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetNamespacePrefixMappingsGets the prefix mappings of the namespace for a navigation property. (Defined by SerializationExtensionMethods.)
Public Extension MethodGetPropertyValue(IEdmStructuredValue, IEdmProperty, EdmExpressionEvaluator)Overloaded. Gets the IEdmValue of a property of a term type that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetPropertyValue(IEdmStructuredValue, IEdmProperty, String, EdmExpressionEvaluator)Overloaded. Gets the IEdmValue of a property of a term type that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetPropertyValue(T)(IEdmStructuredValue, IEdmProperty, EdmToClrEvaluator)Overloaded. Gets the CLR value of a property of a term type that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetPropertyValue(T)(IEdmStructuredValue, IEdmProperty, String, EdmToClrEvaluator)Overloaded. Gets the CLR value of a property of a term type that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(IEdmStructuredValue, String, EdmExpressionEvaluator)Overloaded. Gets the IEdmValue of a vocabulary term that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(IEdmStructuredValue, IEdmValueTerm, EdmExpressionEvaluator)Overloaded. Gets the IEdmValue of a vocabulary term that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(IEdmVocabularyAnnotatable, String, EdmExpressionEvaluator)Overloaded. Gets the IEdmValue of a vocabulary term that has been applied to an element. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(IEdmVocabularyAnnotatable, IEdmValueTerm, EdmExpressionEvaluator)Overloaded. Gets the IEdmValue of a vocabulary term that has been applied to an element. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(IEdmStructuredValue, String, String, EdmExpressionEvaluator)Overloaded. Gets the IEdmValue of a vocabulary term that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(IEdmStructuredValue, IEdmValueTerm, String, EdmExpressionEvaluator)Overloaded. Gets the IEdmValue of a vocabulary term that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(IEdmVocabularyAnnotatable, String, String, EdmExpressionEvaluator)Overloaded. Gets the IEdmValue of a vocabulary term that has been applied to an element. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(IEdmVocabularyAnnotatable, IEdmValueTerm, String, EdmExpressionEvaluator)Overloaded. Gets the IEdmValue of a vocabulary term that has been applied to an element. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(T)(IEdmStructuredValue, String, EdmToClrEvaluator)Overloaded. Gets the CLR value of a vocabulary term that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(T)(IEdmStructuredValue, IEdmValueTerm, EdmToClrEvaluator)Overloaded. Gets the CLR value of a vocabulary term that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(T)(IEdmVocabularyAnnotatable, String, EdmToClrEvaluator)Overloaded. Gets the CLR value of a vocabulary term that has been applied to an element. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(T)(IEdmVocabularyAnnotatable, IEdmValueTerm, EdmToClrEvaluator)Overloaded. Gets the CLR value of a vocabulary term that has been applied to an element. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(T)(IEdmStructuredValue, String, String, EdmToClrEvaluator)Overloaded. Gets the CLR value of a vocabulary term that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(T)(IEdmStructuredValue, IEdmValueTerm, String, EdmToClrEvaluator)Overloaded. Gets the CLR value of a vocabulary term that has been applied to the type of a value. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(T)(IEdmVocabularyAnnotatable, String, String, EdmToClrEvaluator)Overloaded. Gets the CLR value of a vocabulary term that has been applied to an element. (Defined by ExtensionMethods.)
Public Extension MethodGetTermValue(T)(IEdmVocabularyAnnotatable, IEdmValueTerm, String, EdmToClrEvaluator)Overloaded. Gets the CLR value of a vocabulary term that has been applied to an element. (Defined by ExtensionMethods.)
Public Extension MethodIsBadIndicates whether this element contains errors returned by the Errors(IEdmElement) method. (Defined by ValidationExtensionMethods.)
Public Extension MethodLocationGets the location of the specified item. (Defined by ExtensionMethods.)
Public Extension MethodSchemaElementsAcrossModelsGets all schema elements from the model, and models referenced by it. (Defined by ExtensionMethods.)
Public Extension MethodSetAnnotationValue(IEdmElement, String, String, Object)Overloaded. Sets an annotation value for an EDM element. If the value is null, no annotation is added and an existing annotation with the same name is removed. (Defined by ExtensionMethods.)
Public Extension MethodSetAnnotationValue(T)(IEdmElement, T)Overloaded. Sets an annotation value on an annotatable element. (Defined by ExtensionMethods.)
Public Extension MethodSetAnnotationValuesSets a set of annotation values. If a supplied value is null, no annotation is added and an existing annotation with the same name is removed. (Defined by ExtensionMethods.)
Public Extension MethodSetAssociationAnnotations Sets the annotations for the association serialized for a navigation property. (Defined by SerializationExtensionMethods.)
Public Extension MethodSetAssociationEndName Sets the name used for the association end serialized for a navigation property. (Defined by SerializationExtensionMethods.)
Public Extension MethodSetAssociationName Sets the name used for the association serialized for a navigation property. (Defined by SerializationExtensionMethods.)
Public Extension MethodSetAssociationNamespace Sets the namespace used for the association serialized for a navigation property. (Defined by SerializationExtensionMethods.)
Public Extension MethodSetAssociationSetAnnotations Sets the annotations for the association set serialized for a navigation target of an entity set. (Defined by SerializationExtensionMethods.)
Public Extension MethodSetAssociationSetName Sets the name used for the association set serialized for a navigation property of an entity set. (Defined by SerializationExtensionMethods.)
Public Extension MethodSetDataServiceVersionSets the version used for the data service of a navigation property of an entity set. (Defined by SerializationExtensionMethods.)
Public Extension MethodSetDocumentationSets documentation for a specified element. (Defined by ExtensionMethods.)
Public Extension MethodSetEdmVersionSets the EDM version with the specified model and version. (Defined by ExtensionMethods.)
Public Extension MethodSetEdmxVersionSets the version used for the edmx of a navigation property of an entity set. (Defined by SerializationExtensionMethods.)
Public Extension MethodSetMaxDataServiceVersionSets the version of the maximum data service for a navigation property of an entity set. (Defined by SerializationExtensionMethods.)
Public Extension MethodSetNamespaceAlias Sets the serialization alias for a given namespace (Defined by SerializationExtensionMethods.)
Public Extension MethodSetNamespacePrefixMappings Sets an annotation on the IEdmModel to notify the serializer of preferred prefix mappings for xml namespaces. (Defined by SerializationExtensionMethods.)
Public Extension MethodTryWriteCsdl(XmlWriter, IEnumerable(EdmError))Overloaded. Outputs a CSDL artifact to the provided writer. (Defined by CsdlWriter.)
Public Extension MethodTryWriteCsdl(Func(String, XmlWriter), IEnumerable(EdmError))Overloaded. (Defined by CsdlWriter.)
Public Extension MethodValidate(IEnumerable(EdmError))Overloaded. Validates the IEdmModel and all of its properties using the current version of the model. If the model has no version, IEdmModel is used. (Defined by EdmValidator.)
Public Extension MethodValidate(Version, IEnumerable(EdmError))Overloaded. Validates the IEdmModel and all of its properties given certain version. (Defined by EdmValidator.)
Public Extension MethodValidate(ValidationRuleSet, IEnumerable(EdmError))Overloaded. Validates the IEdmModel and all of its properties given certain version. (Defined by EdmValidator.)
Top

This interface, and all interfaces reachable from it, preserve certain invariants: -- The backing implementation of an element can be loaded or created on demand. -- No direct element mutation occurs through the interfaces.

Show:
© 2015 Microsoft