internal SQLVariable(XmlElement varElement) { SQLVariableEditor e = new SQLVariableEditor(); e.VariableName = varElement.GetAttribute("Name"); e.VariableKey = varElement.GetAttribute("Key"); this.Editor = e; }
public System.Xml.XmlElement GetXml() { SQLVariableEditor editor = this.Editor as SQLVariableEditor; XmlHelper h = new XmlHelper("<Variable/>"); h.SetAttribute(".", "Name", editor.VariableName); h.SetAttribute(".", "Source", this.Source); XmlElement q = h.AddElement(".", "SqlQuery"); XmlCDataSection section = q.OwnerDocument.CreateCDataSection(editor.VariableKey); q.AppendChild(section); return(h.GetElement(".")); }