コード例 #1
0
 public XmlReaderContext(string ns, string pref, XmlFactory factory, bool qualifiedElement, bool qualifiedAttribute)
 {
     this._fact   = factory;
     this._ns     = ns;
     this._pref   = pref;
     this._qattr  = qualifiedAttribute;
     this._qele   = qualifiedElement;
     this._params = new DBParamList();
 }
コード例 #2
0
 public XmlReaderContext(string ns, string pref)
     : this(ns, pref, XmlFactory.Create())
 {
 }
コード例 #3
0
 public XmlReaderContext(string ns, string pref, XmlFactory factory)
     : this(ns, pref, factory, true, false)
 {
 }
コード例 #4
0
ファイル: DBQuery.cs プロジェクト: jschmer/dynasql
        /// <summary>
        /// Inputs the XmlReader and attempts to parse as a valid DbQuery with the
        /// specified element namespace and prefix
        /// </summary>
        /// <param name="reader">The reader to load the DbQuery from</param>
        /// <param name="ns">The namespace of the DBQuery elements</param>
        /// <param name="prefix">The prefix</param>
        /// <param name="factory">An XmlFactory that creates new DBClause instances from their known names</param>
        /// <returns>The parsed DbQuery</returns>
        public static DBQuery ReadXml(System.Xml.XmlReader reader, string ns, string prefix, XmlFactory factory)
        {
            XmlReaderContext context = new XmlReaderContext(ns, prefix, factory);

            return(DBQuery.sReadXml(reader, context));
        }