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)); }
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)); }
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)); }
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)); }
public LightAggregate(LightQuery <T> query, Expression <Func <T, K> > expression) : base(query.Context, expression) { _query = query.QueryExpression; _level = query.Level; }