- 创建BLL层使用类库
- 在BLL层创建类对应Model层(ps:起名方式 Model类名后加Manage)
- 在BLL层添加引用: DAL System.Data 使用Model对象时添加 Model
- 创建类后检查是否具有public属性 没有要手动加上 不然无法调用
- 使用复制DAL的增删改查方法 然后修改return 返回的方法 使用DAL
///
/// 查询 /// /// /// /// ///public static DataTable Select(int pid = 0, string txt = "", int tid = 0) { return TaskService.Select(pid, txt, tid); } /// /// 修改 /// /// ///public static int Update(int pid) { return TaskService.Update(pid); } /// /// 删除 /// /// ///public static int Delete(int pid) { return TaskService.Delete(pid); } /// /// 添加 /// /// ///public static int Inset(Task task) { return TaskService.Inset(task); }



