/// <summary> /// Retrieves an annotation value for function import from the server model. Returns null if no annotation with the given name exists. /// </summary> /// <param name="serverManager">The annotation manager from the server model.</param> /// <param name="namespaceName">Namespace that the annotation belongs to.</param> /// <param name="localName">Local name of the annotation.</param> /// <returns>Returns the annotation value that corresponds to the provided name. Returns null if no annotation with the given name exists. </returns> internal object GetAnnotationValue(IEdmDirectValueAnnotationsManager serverManager, string namespaceName, string localName) { Debug.Assert(serverManager != null, "serverManager != null"); return serverManager.GetAnnotationValue(this.serverFunctionImport, namespaceName, localName); }
/// <summary> /// Retrieves an annotation value for function import from the server model. Returns null if no annotation with the given name exists. /// </summary> /// <param name="serverManager">The annotation manager from the server model.</param> /// <param name="namespaceName">Namespace that the annotation belongs to.</param> /// <param name="localName">Local name of the annotation.</param> /// <returns>Returns the annotation value that corresponds to the provided name. Returns null if no annotation with the given name exists. </returns> internal object GetAnnotationValue(IEdmDirectValueAnnotationsManager serverManager, string namespaceName, string localName) { Debug.Assert(serverManager != null, "serverManager != null"); return(serverManager.GetAnnotationValue(this.serverFunctionImport, namespaceName, localName)); }
public object GetAnnotationValue(IEdmElement element, string namespaceName, string localName) { var innerElement = _parent.ConvertFixedEdmElementToInnerEdmElement(element); return(_innerAnnotationsManager.GetAnnotationValue(innerElement, namespaceName, localName)); }