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.
Exemplo n.º 1
0
 public void SetUp()
 {
     qb = new QueryBuilder();
 }
Exemplo n.º 2
0
 public override void Prepare()
 {
     QueryBuilder qb = new QueryBuilder();
     this.UnderlyingQuery = qb.Parse(this.CommandText);
 }
Exemplo n.º 3
0
 public void SetUp()
 {
     qb = new QueryBuilder();
 }