コード例 #1
0
 public GeneralQuery(string queryParams, string queryArgs)
 {
     XmlDocument queryArgsDoc = new XmlDocument();
     queryArgsDoc.LoadXml(queryArgs);
     XmlDocument queryParamsDoc = new XmlDocument();
     queryParamsDoc.LoadXml(queryArgs);
     QueryArgs = new QArgs(queryArgsDoc.DocumentNode);
     QueryParams = new QGeneralParams(queryParamsDoc.DocumentNode);
 }
コード例 #2
0
 public GeneralQuery(string queryStr)
 {
     XmlDocument queryDoc = new XmlDocument();
     queryDoc.LoadXml(queryStr);
     var queryNode = queryDoc.DocumentNode.SelectSingleNode("/query");
     Debug.Assert(queryNode != null);
     string type = queryNode.GetAttributeValue("type", "");
     Debug.Assert(type == "generalQuery");
     var queryParamsNode = queryNode.SelectSingleNode("./params");
     var queryArgsNode = queryNode.SelectSingleNode("./queryArgs");
     QueryArgs = new QArgs(queryArgsNode);
     QueryParams = new QGeneralParams(queryParamsNode);
 }
コード例 #3
0
 public GeneralQuery(QGeneralParams queryParams, QArgs queryArgs)
 {
     QueryParams = queryParams;
     QueryArgs = queryArgs;
 }