예제 #1
0
 public static SelectBuilder Where <TEntity>(this SelectBuilder builder, Expression <Func <TEntity, bool> > expression)
 {
     return(builder.Where(WhereOperator.And, expression));
 }
예제 #2
0
 public Order(SelectBuilder builder) : base(builder)
 {
 }
예제 #3
0
 public static SelectBuilder Where <TEntity1, TEntity2>(this SelectBuilder builder,
                                                        WhereOperator preOperator, Expression <Func <TEntity1, TEntity2, bool> > expression)
 {
     return(builder.Where(preOperator, new[] { typeof(TEntity1), typeof(TEntity2) }, expression));
 }
 public static SelectBuilder GroupBy <TEntity>(this SelectBuilder builder,
                                               params Expression <Func <TEntity, object> >[] expressions)
 {
     return(builder.GroupBy(new[] { typeof(TEntity) }, expressions));
 }
예제 #5
0
 public SelectFrom()
 {
     Builder = new SelectBuilder();
 }
예제 #6
0
 public static SelectBuilder Having <TEntity1, TEntity2>(this SelectBuilder builder,
                                                         Expression <Func <TEntity1, TEntity2, bool> > expression)
 {
     return(builder.Having(WhereOperator.And, expression));
 }
예제 #7
0
 public static SelectBuilder Having <TEntity>(this SelectBuilder builder,
                                              WhereOperator preOperator, Expression <Func <TEntity, bool> > expression)
 {
     return(builder.Having(preOperator, new[] { typeof(TEntity) }, expression));
 }
예제 #8
0
 public static SelectBuilder Join <TEntity1, TEntity2>(this SelectBuilder builder,
                                                       Expression <Func <TEntity1, TEntity2, bool> > condition)
 {
     return(builder.Join(JoinType.Inner, builder.GetNextTableAlias(), condition));
 }
예제 #9
0
 public static SelectBuilder Join <TEntity1, TEntity2, TJoin>(this SelectBuilder builder,
                                                              JoinType joinType, string alias, Expression <Func <TEntity1, TEntity2, TJoin, bool> > condition)
 {
     return(builder.Join(joinType, alias, typeof(TJoin),
                         new[] { typeof(TEntity1), typeof(TEntity2) }, condition));
 }
예제 #10
0
 public static SelectBuilder Join <TEntity1, TEntity2, TJoin>(this SelectBuilder builder,
                                                              string alias, Expression <Func <TEntity1, TEntity2, TJoin, bool> > condition)
 {
     return(builder.Join(JoinType.Inner, alias, condition));
 }