示例#1
0
文件: OrderBll.cs 项目: roytown/Bag
        public static IList<Model.Order> GetOrdersForTask(int tid)
        {
            if (tid<=0)
            {
                return null;
            }

            IOrder orderProvider = new OrderDal(EFContext.Instance);
            return orderProvider.GetList(tid);
        }
示例#2
0
文件: OrderBll.cs 项目: roytown/Bag
 public static bool UpdateOrder(Model.Order order)
 {
     IOrder orderProvider = new OrderDal(EFContext.Instance);
     return orderProvider.Update(order);
 }
示例#3
0
文件: OrderBll.cs 项目: roytown/Bag
 public static IList<Model.Order> GetOrders(int page, int pageSize, Expression<Func<Model.Order, bool>> expresion, out int count,bool includeTask=false)
 {
     IOrder orderProvider = new OrderDal(EFContext.Instance);
     return orderProvider.GetList(page,pageSize,includeTask,expresion,out count);
 }
示例#4
0
文件: OrderBll.cs 项目: roytown/Bag
 public static Model.Order GetOrder(int id, bool includeTask = false, bool includeLog = false)
 {
     IOrder orderProvider = new OrderDal(EFContext.Instance);
     return orderProvider.Get(id, includeTask, includeLog);
 }
示例#5
0
文件: OrderBll.cs 项目: roytown/Bag
 public static int Count(Expression<Func<Model.Order, bool>> expresion)
 {
     IOrder orderProvider = new OrderDal(EFContext.Instance);
     return orderProvider.Count(expresion);
 }
示例#6
0
文件: OrderBll.cs 项目: roytown/Bag
 public static bool AddOrder(Model.Order order)
 {
     IOrder orderProvider = new OrderDal(EFContext.Instance);
     return orderProvider.Add(order);
 }