Esempio n. 1
0
 public static SelectBuilder Where <TEntity>(this SelectBuilder builder, Expression <Func <TEntity, bool> > expression)
 {
     return(builder.Where(WhereOperator.And, expression));
 }
Esempio n. 2
0
 public Order(SelectBuilder builder) : base(builder)
 {
 }
Esempio n. 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));
 }
Esempio n. 5
0
 public SelectFrom()
 {
     Builder = new SelectBuilder();
 }
Esempio n. 6
0
 public static SelectBuilder Having <TEntity1, TEntity2>(this SelectBuilder builder,
                                                         Expression <Func <TEntity1, TEntity2, bool> > expression)
 {
     return(builder.Having(WhereOperator.And, expression));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }