コード例 #1
0
 public SqlJoin(SqlMultiKeyWord joinPrefix, SqlSourceItem source, SymbolPosition onpos, SqlExpression cond)
 {
     JoinPrefix        = joinPrefix;
     Source            = source;
     OnPos             = onpos;
     Condition         = cond;
     JoinPrefix.Parent = this;
     Source.Parent     = this;
     if (Condition != null)
     {
         Condition.Parent = this;
     }
 }
コード例 #2
0
 public SqlSourceList(SqlSourceItem source, IEnumerable <SqlJoin> joins)
 {
     Source = source;
     if (joins != null)
     {
         Joins = new List <SqlJoin>(joins);
     }
     else
     {
         Joins = new List <SqlJoin>();
     }
     Source.Parent = this;
     foreach (var j in joins)
     {
         j.Parent = this;
     }
 }