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
ファイル: Select.cs プロジェクト: erisonliang/NetBase
 public void SetUp()
 {
     qb = new QueryBuilder();
 }
コード例 #2
0
ファイル: DbfCommand.cs プロジェクト: buttonpusher/NetBase
 public override void Prepare()
 {
     QueryBuilder qb = new QueryBuilder();
     this.UnderlyingQuery = qb.Parse(this.CommandText);
 }
コード例 #3
0
ファイル: Select.cs プロジェクト: buttonpusher/NetBase
 public void SetUp()
 {
     qb = new QueryBuilder();
 }