private static void SetODataAnnotation(this IEdmDirectValueAnnotationsManager manager, IEdmElement element, string name, string value) { Contract.Assert(manager != null); manager.SetAnnotationValue(element, "http://docs.oasis-open.org/odata/ns/metadata", name, new FakeEdmStringValue(value)); }
private static void SetCoreAnnotation <T>(this IEdmDirectValueAnnotationsManager manager, IEdmElement element, T value) { Contract.Assert(manager != null); manager.SetAnnotationValue(element, "http://schemas.microsoft.com/ado/2011/04/edm/internal", GetCoreAnnotationName(typeof(T)), value); }
private static void SetODataAnnotation(this IEdmDirectValueAnnotationsManager manager, IEdmElement element, string name, string value) { Contract.Assert(manager != null); manager.SetAnnotationValue(element, "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata", name, new FakeEdmStringValue(value)); }
public void SetAnnotationValue(IEdmElement element, string namespaceName, string localName, object value) { // Set the inner value to for the same to null, to avoid duplicates/conflicts. IEdmElement innerElement = _parent.ConvertFixedEdmElementToInnerEdmElement(element); _innerAnnotationsManager.SetAnnotationValue(innerElement, namespaceName, localName, value); }
private void AnnotateElement(IEdmSchemaType schemaElement, Uri elementId) { _annotationsManager.SetAnnotationValue(schemaElement, AnnotationNamespace, AnnotationAttribute, elementId); }