Esempio n. 1
0
 public void AddAnnotation(CsdlVocabularyAnnotationBase annotation)
 {
     this.AddUntypedAnnotation(annotation);
 }
Esempio n. 2
0
		private IEdmVocabularyAnnotation WrapVocabularyAnnotation(CsdlVocabularyAnnotationBase annotation, CsdlSemanticsSchema schema, IEdmVocabularyAnnotatable targetContext, CsdlSemanticsAnnotations annotationsContext, string qualifier)
		{
			CsdlSemanticsVocabularyAnnotation annotation2;
			if (!this.wrappedAnnotations.TryGetValue(annotation, out annotation2))
			{
				CsdlValueAnnotation annotation3 = annotation as CsdlValueAnnotation;
				annotation2 = (annotation3 != null) ? ((CsdlSemanticsVocabularyAnnotation) new CsdlSemanticsValueAnnotation(schema, targetContext, annotationsContext, annotation3, qualifier)) : ((CsdlSemanticsVocabularyAnnotation) new CsdlSemanticsTypeAnnotation(schema, targetContext, annotationsContext, (CsdlTypeAnnotation) annotation, qualifier));
				this.wrappedAnnotations[annotation] = annotation2;
			}
			return annotation2;
		}