This class responsible for parsing the SQL statement and creating a query object. Why haven't we used a parser generator... well, how would we ever learn anything? However, this is a very large class and could be broken down a little. The entry point is really the "Expression" function at the bottom. The key element here is really the tokenizer.
示例#1
0
 public void SetUp()
 {
     qb = new QueryBuilder();
 }
示例#2
0
 public override void Prepare()
 {
     QueryBuilder qb = new QueryBuilder();
     this.UnderlyingQuery = qb.Parse(this.CommandText);
 }
示例#3
0
 public void SetUp()
 {
     qb = new QueryBuilder();
 }