示例#1
0
        public override void WriteXml(XmlWriter xmlw)
        {
            xmlw.WriteStartElement(this.GetType().Name);
            xmlw.WriteAttributeString("Operator", _op.ToString());

            xmlw.WriteStartElement("Operand");
            _operand.WriteXml(xmlw);
            xmlw.WriteEndElement();

            xmlw.WriteEndElement();
        }
示例#2
0
        public override void WriteXml(XmlWriter xmlw)
        {
            xmlw.WriteStartElement(this.GetType().Name);
            xmlw.WriteAttributeString("Type", _type.Name);
            xmlw.WriteAttributeString("BaseTypeOnly", _baseTypeOnly.ToString());

            xmlw.WriteStartElement("Source");
            _source.WriteXml(xmlw);
            xmlw.WriteEndElement();

            xmlw.WriteEndElement();
        }
示例#3
0
        public override void WriteXml(XmlWriter xmlw)
        {
            xmlw.WriteStartElement(this.GetType().Name);

            xmlw.WriteStartElement("Link");
            if (_link != null)
            {
                _link.WriteXml(xmlw);
            }
            xmlw.WriteEndElement();

            xmlw.WriteEndElement();
        }
示例#4
0
        public override void WriteXml(XmlWriter xmlw)
        {
            xmlw.WriteStartElement(this.GetType().Name);
            xmlw.WriteAttributeString("Name", _name);
            xmlw.WriteAttributeString("IsRelational", _isRelational.ToString());
            xmlw.WriteAttributeString("PropertyType", (_propertyType != null) ? _propertyType.Name : "null");
            xmlw.WriteAttributeString("OwnerClass", (_ownerClass != null) ? _ownerClass.Name : "null");

            xmlw.WriteStartElement("Source");
            _source.WriteXml(xmlw);
            xmlw.WriteEndElement();

            xmlw.WriteEndElement();
        }
示例#5
0
        public override void WriteXml(XmlWriter xmlw)
        {
            xmlw.WriteStartElement(this.GetType().Name);

            xmlw.WriteStartElement("Source");
            _source.WriteXml(xmlw);
            xmlw.WriteEndElement();

            xmlw.WriteStartElement("Constraint");
            _constraint.WriteXml(xmlw);
            xmlw.WriteEndElement();


            xmlw.WriteEndElement();
        }
示例#6
0
        public override void WriteXml(XmlWriter xmlw)
        {
            xmlw.WriteStartElement(this.GetType().Name);

            xmlw.WriteStartElement("Source");
            _source.WriteXml(xmlw);
            xmlw.WriteEndElement();

            xmlw.WriteStartElement("OrderByItems");
            foreach (OrderByItem item in _items)
            {
                xmlw.WriteStartElement("Item");
                xmlw.WriteAttributeString("Property", item.Item);
                xmlw.WriteAttributeString("Ascending", item.Ascending.ToString());
                xmlw.WriteEndElement();
            }
            xmlw.WriteEndElement();

            xmlw.WriteEndElement();
        }