public static JoinClauseNode Join <TSource, TTarget>(JoinType type, ValueNode joinExpr) { return(new JoinClauseNode( new FSharpList <ITableIdentifier>(new TableIdentifier <TSource>(), FSharpList <ITableIdentifier> .Empty), new TableIdentifier <TTarget>(), type, joinExpr.ToOption())); }
private SqlExpression GetExpectedJoinStream(JoinType joinKeyword) { return S.SelectNode( S.Select(S.Star<Person>(), S.Star<Car>()), S.From<Person>( S.Join<Person, Car>(joinKeyword, S.BinExp(S.Col<Person>("Id"), BinaryOperation.Equal, S.Col<Car>("DriverId"))) )); }
private SqlExpression GetExpectedJoinStream(JoinType joinKeyword) { return (S.SelectNode( S.Select(S.Star <Person>(), S.Star <Car>()), S.From <Person>( S.Join <Person, Car>(joinKeyword, S.BinExp(S.Col <Person>("Id"), BinaryOperation.Equal, S.Col <Car>("DriverId"))) ))); }
public static JoinClauseNode Join <TSource1, TSource2, TTarget>(JoinType type, ValueNode joinExpr) { return(new JoinClauseNode( ListModule.OfArray(new ITableIdentifier[] { new TableIdentifier <TSource1>(), new TableIdentifier <TSource2>() }), new TableIdentifier <TTarget>(), type, joinExpr.ToOption())); }