internal void WritePropertyValueElementHeader(IEdmPropertyValueBinding value, bool isInline)
 {
     this.xmlWriter.WriteStartElement(CsdlConstants.Element_PropertyValue);
     this.WriteRequiredAttribute(CsdlConstants.Attribute_Property, value.BoundProperty.Name, EdmValueWriter.StringAsXml);
     if (isInline)
     {
         this.WriteInlineExpression(value.Value);
     }
 }
 internal void WritePropertyValueElementHeader(IEdmPropertyValueBinding value, bool isInline)
 {
     this.xmlWriter.WriteStartElement("PropertyValue");
     this.WriteRequiredAttribute <string>("Property", value.BoundProperty.Name, new Func <string, string>(EdmValueWriter.StringAsXml));
     if (isInline)
     {
         this.WriteInlineExpression(value.Value);
     }
 }
        protected override void ProcessPropertyValueBinding(IEdmPropertyValueBinding binding)
        {
            bool isInline = IsInlineExpression(binding.Value);

            this.BeginElement <IEdmPropertyValueBinding>(binding, t => this.schemaWriter.WritePropertyValueElementHeader(t, isInline), new Action <IEdmPropertyValueBinding> [0]);
            if (!isInline)
            {
                base.ProcessPropertyValueBinding(binding);
            }
            this.EndElement(binding);
        }
Пример #4
0
 protected virtual void ProcessPropertyValueBinding(IEdmPropertyValueBinding binding)
 {
     this.VisitExpression(binding.Value);
 }
Пример #5
0
		public EdmTypeAnnotation(IEdmVocabularyAnnotatable target, IEdmTerm term, string qualifier, IEdmPropertyValueBinding[] propertyValueBindings) : this(target, term, qualifier, (IEnumerable<IEdmPropertyValueBinding>)propertyValueBindings)
		{
		}
Пример #6
0
		public EdmTypeAnnotation(IEdmVocabularyAnnotatable target, IEdmTerm term, IEdmPropertyValueBinding[] propertyValueBindings) : this(target, term, null, propertyValueBindings)
		{
		}