예제 #1
0
파일: JoinClause.cs 프로젝트: w0lya/sharpql
        public JoinClause <T> InnerJoin(Table table, Predicate onPredicate)
        {
            var clause = new InnerJoin <T>(this.Statement, table, onPredicate);

            this.NextFragment = clause;
            return(clause);
        }
예제 #2
0
 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);
 }