Exemplo n.º 1
0
        /// <summary>
        /// Outputs all the xml elements of this INSERT query on the XmlWriter
        /// </summary>
        /// <param name="writer"></param>
        /// <param name="context"></param>
        /// <returns></returns>
        protected override bool WriteInnerElements(System.Xml.XmlWriter writer, XmlWriterContext context)
        {
            if (this._into != null)
            {
                this.WriteStartElement(XmlHelper.Into, writer, context);
                this._into.WriteXml(writer, context);
                this.WriteEndElement(XmlHelper.Into, writer, context);
            }

            if (this._fields != null && this._fields.Results.Count > 0)
            {
                _fields.WriteXml(writer, context);
            }

            if (_values != null)
            {
                _values.WriteXml(writer, context);
            }
            else if (_innerselect != null)
            {
                _innerselect.WriteXml(writer, context);
            }

            return(base.WriteInnerElements(writer, context));
        }