Example #1
0
 private static void AddLabeledExpressions(IEnumerable <CsdlVocabularyAnnotationBase> annotations, Dictionary <string, object> result)
 {
     foreach (CsdlVocabularyAnnotationBase base2 in annotations)
     {
         CsdlValueAnnotation annotation = base2 as CsdlValueAnnotation;
         if (annotation != null)
         {
             AddLabeledExpressions(annotation.Expression, result);
         }
         else
         {
             CsdlTypeAnnotation annotation2 = base2 as CsdlTypeAnnotation;
             if (annotation2 != null)
             {
                 foreach (CsdlPropertyValue value2 in annotation2.Properties)
                 {
                     AddLabeledExpressions(value2.Expression, result);
                 }
             }
         }
     }
 }
Example #2
0
 private static void AddLabeledExpressions(IEnumerable <CsdlVocabularyAnnotationBase> annotations, Dictionary <string, object> result)
 {
     foreach (CsdlVocabularyAnnotationBase sourceAnnotation in annotations)
     {
         CsdlValueAnnotation valueAnnotation = sourceAnnotation as CsdlValueAnnotation;
         if (valueAnnotation != null)
         {
             AddLabeledExpressions(valueAnnotation.Expression, result);
         }
         else
         {
             CsdlTypeAnnotation typeAnnotation = sourceAnnotation as CsdlTypeAnnotation;
             if (typeAnnotation != null)
             {
                 foreach (CsdlPropertyValue property in typeAnnotation.Properties)
                 {
                     AddLabeledExpressions(property.Expression, result);
                 }
             }
         }
     }
 }
Example #3
0
 public CsdlSemanticsTypeAnnotation(CsdlSemanticsSchema schema, IEdmVocabularyAnnotatable targetContext, CsdlSemanticsAnnotations annotationsContext, CsdlTypeAnnotation annotation, string externalQualifier)
     : base(schema, targetContext, annotationsContext, annotation, externalQualifier)
 {
 }
Example #4
0
 public CsdlSemanticsTypeAnnotation(CsdlSemanticsSchema schema, IEdmVocabularyAnnotatable targetContext, CsdlSemanticsAnnotations annotationsContext, CsdlTypeAnnotation annotation, string externalQualifier) : base(schema, targetContext, annotationsContext, annotation, externalQualifier)
 {
     this.propertiesCache = new Cache <CsdlSemanticsTypeAnnotation, IEnumerable <IEdmPropertyValueBinding> >();
 }