public JoinClause <T> InnerJoin(Table table, Predicate onPredicate) { var clause = new InnerJoin <T>(this.Statement, table, onPredicate); this.NextFragment = clause; return(clause); }
public void InnerJoin <T>(SqlFragment parent, InnerJoin <T> innerJoin) where T : IStatement { this.Script.AppendLine(); this.Script.Append(TSqlKeyword.INNER_JOIN); this.Script.AppendFragment(innerJoin.Table, parent, this); this.Script.Append(TSqlKeyword.ON); this.Script.AppendFragment(innerJoin.OnPredicate, parent, this); }