Example #1
0
 internal void AddJoin(SqlJoin join)
 {
     if (_joins == null)
     {
         _joins = new List<SqlJoin>();
     }
     _joins.Add(join);
 }
Example #2
0
 public JoinClause(FromClause parent, SqlJoin join)
     : base(parent)
 {
     _from = parent;
     _join = join;
 }
 public JoinClause(FromClause parent, SqlJoin join)
     : base(parent)
 {
     _from = parent;
     _join = join;
 }
 protected override SqlExpression VisitJoin(SqlJoin expression)
 {
     _writer.WriteStartJoin(expression.Type);
     Visit(expression.Table);
     if (expression.Predicate != null)
     {
         _writer.WriteStartOn();
         Visit(expression.Predicate);
     }
     return expression;
 }