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); }
public static DistinctX Distinct(this WhereX where) { where.DistinctHandle(); return(new DistinctX(where.DC)); }
/*************************************************************************************************************************************/ public static WhereX And(this WhereX where, Expression <Func <bool> > compareFunc) { where.DC.Action = ActionEnum.And; where.WhereJoinHandle(where, compareFunc); return(where); }
/****************************************************************************************************************************************/ public static WhereX Or(this WhereX where, Expression <Func <bool> > func) { where.DC.OP.WhereJoinHandle(where, func, ActionEnum.Or); return(where); }
/// <summary> /// 请参阅: <see langword=".Where() & .And() & .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); }
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)); }
public static OrderByX OrderBy <F>(this WhereX target, Expression <Func <F> > propertyFunc, OrderByEnum orderBy = OrderByEnum.Desc) { return(OrderByX(target, propertyFunc, orderBy)); }