Exemple #1
0
        public void AddUnionAll <TEntity>(DbQuerySet <TEntity> querySet)
        {
            ValidateActionStateChange(DbQueryAction.SetUnion);

            m_pLastAction = DbQueryAction.SetUnion;
            this.UnionTargets.Add(new UnionTarget(UnionMode.UnionAll, querySet.QueryContext, this.Session.CreateTempTableName()));
        }
Exemple #2
0
        public void AddLeftJoin <TJoin>(DbQuerySet <TJoin> querySet, LambdaExpression onExpression)
        {
            ValidateActionStateChange(DbQueryAction.SetJoin);

            m_pLastAction = DbQueryAction.SetJoin;
            this.FromTables.Add(new TableInfo(querySet.QueryContext, this.Session.CreateTempTableName()));
            this.JoinTargets.Add(new JoinTarget(JoinMode.LeftJoin, this.FromTables.Last(), onExpression));
        }