예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
            public object GetAnnotationValue(IEdmElement element, string namespaceName, string localName)
            {
                var innerElement = _parent.ConvertFixedEdmElementToInnerEdmElement(element);

                return(_innerAnnotationsManager.GetAnnotationValue(innerElement, namespaceName, localName));
            }