Exemple #1
0
        public override IJoinTable <K, T1> Join <T1>(Expression <Func <K, T1, bool> > onExpression, JoinSetting joinSetting)
        {
            var lightQuery = new LightQuery <T1>(_context);

            return(new LightJoinTable <K, T1>(this, JoinType.InnerJoin, lightQuery, onExpression, _joinSetting,
                                              joinSetting));
        }
Exemple #2
0
        public override IJoinTable <K, T1> LeftJoin <T1>(Expression <Func <K, T1, bool> > onExpression)
        {
            var lightQuery = new LightQuery <T1>(_context);

            return(new LightJoinTable <K, T1>(this, JoinType.LeftJoin, lightQuery, onExpression, _joinSetting,
                                              JoinSetting.None));
        }
Exemple #3
0
        public override IJoinTable <K, T1> Join <T1>(Expression <Func <T1, bool> > queryExpression, Expression <Func <K, T1, bool> > onExpression)
        {
            var lightQuery = new LightQuery <T1>(Context);

            if (queryExpression != null)
            {
                lightQuery.Where(queryExpression);
            }
            return(new LightJoinTable <K, T1>(this, JoinType.InnerJoin, lightQuery, onExpression, _joinSetting, JoinSetting.None));
        }
Exemple #4
0
        public override IJoinTable <T, T1> RightJoin <T1>(Expression <Func <T1, bool> > queryExpression, Expression <Func <T, T1, bool> > onExpression, JoinSetting joinSetting)
        {
            var lightQuery = new LightQuery <T1>(_context);

            if (queryExpression != null)
            {
                lightQuery.Where(queryExpression);
            }
            return(new LightJoinTable <T, T1>(this, JoinType.RightJoin, lightQuery, onExpression, _joinSetting, joinSetting));
        }
Exemple #5
0
 public LightAggregate(LightQuery <T> query, Expression <Func <T, K> > expression)
     : base(query.Context, expression)
 {
     _query = query.QueryExpression;
     _level = query.Level;
 }