Beispiel #1
0
        public SqlStatementList(TableStatement tsParent)
        {
            XmlNodeList xnlSqlStatements = tsParent.Node.SelectNodes("statement");

            foreach (XmlNode nodeStatement in xnlSqlStatements)
            {
                this.Add(new SqlStatement(tsParent, nodeStatement));
            }
        }
Beispiel #2
0
 public SqlStatement(TableStatement tsParent, XmlNode nodeStatement)
 {
     this.ParentStatement = tsParent;
     this.SqlExecuteType  = (eSqlExecuteType)Enum.Parse(typeof(eSqlExecuteType), XmlHelper.GetElementInnerText(nodeStatement, "@type"));
     this.Statement       = nodeStatement.InnerText;
 }