示例#1
0
文件: TaskBll.cs 项目: roytown/Bag
 public static bool CheckEcpInUse(string ecp)
 {
     ITask taskProvider = new TaskDal(EFContext.Instance);
     return taskProvider.Count(m=>m.Ecp==ecp)>0;
 }
示例#2
0
文件: TaskBll.cs 项目: roytown/Bag
 public static int Count(Expression<Func<Task, bool>> expression)
 {
     ITask taskProvider = new TaskDal(EFContext.Instance);
     return taskProvider.Count(expression);
 }
示例#3
0
文件: TaskBll.cs 项目: roytown/Bag
 public static bool CheckCodeInUse(string code)
 {
     ITask taskProvider = new TaskDal(EFContext.Instance);
     return taskProvider.Count(m => m.Code == code) > 0;
 }