/// <summary>
 /// Adds a table to the query.
 /// </summary>
 public void AddTable(TableBase table)
 {
     _tables.Add(table);
     SetAlias(table);
 }
 public void SetAlias(TableBase tableBase)
 {
     var join = tableBase as Join;
     if (join != null)
     {
         SetAlias(join.Left);
         SetAlias(join.Right);
         return;
     }
     var table = (QueryTable)tableBase;
     _aliasMap.Add(table, "t" + _tableNo++);
 }
Пример #3
0
 public Join(TableBase left, QueryTable right, JoinType joinType)
 {
     _left = left;
     _right = right;
     _joinType = joinType;
 }