コード例 #1
0
        public static WhereX And(this WhereX where, Expression <Func <bool> > func)
        {
            var field = where.DC.EH.ExpressionHandle(func, ActionEnum.And);

            field.Crud = CrudTypeEnum.Join;
            where.DC.AddConditions(field);
            return(where);
        }
コード例 #2
0
ファイル: DistinctEx.cs プロジェクト: yunyongtech/Yunyong
 public static DistinctX Distinct(this WhereX where)
 {
     where.DistinctHandle();
     return(new DistinctX(where.DC));
 }
コード例 #3
0
ファイル: AndEx.cs プロジェクト: BestHYC/MyDAL
        /*************************************************************************************************************************************/

        public static WhereX And(this WhereX where, Expression <Func <bool> > compareFunc)
        {
            where.DC.Action = ActionEnum.And;
            where.WhereJoinHandle(where, compareFunc);
            return(where);
        }
コード例 #4
0
        /****************************************************************************************************************************************/

        public static WhereX Or(this WhereX where, Expression <Func <bool> > func)
        {
            where.DC.OP.WhereJoinHandle(where, func, ActionEnum.Or);
            return(where);
        }
コード例 #5
0
ファイル: WhereEx.cs プロジェクト: hpc-dal/HPC.DAL
 /// <summary>
 /// 请参阅: <see langword=".Where() &amp; .And() &amp; .Or() 使用 https://www.cnblogs.com/Meng-NET/"/>
 /// </summary>
 public static WhereX Or(this WhereX where, Expression <Func <bool> > compareFunc)
 {
     where.DC.Action = ActionEnum.Or;
     where.MT_WhereAndOr(where, compareFunc);
     return(where);
 }
コード例 #6
0
 public static OrderByX OrderBy <F>(this WhereX whereX, Expression <Func <F> > propertyFunc, OrderByEnum orderBy = OrderByEnum.Desc)
 {
     whereX.DC.Action = ActionEnum.OrderBy;
     whereX.OrderByF(propertyFunc, orderBy);
     return(new OrderByX(whereX.DC));
 }
コード例 #7
0
ファイル: OrderByEx.cs プロジェクト: liumeng0403/MyDAL
 public static OrderByX OrderBy <F>(this WhereX target, Expression <Func <F> > propertyFunc, OrderByEnum orderBy = OrderByEnum.Desc)
 {
     return(OrderByX(target, propertyFunc, orderBy));
 }