示例#1
0
文件: subjuBLL.cs 项目: newzl/examsou
 public static subju getEntity(int id)
 {
     using (DAL.root.subjuDAL dal = new DAL.root.subjuDAL())
     {
         return(dal.getEntity(id));
     }
 }
示例#2
0
文件: subjuBLL.cs 项目: newzl/examsou
 public static void inState(int id, bool state)
 {
     using (DAL.root.subjuDAL dal = new DAL.root.subjuDAL())
     {
         dal.inState(id, state);
     }
 }
示例#3
0
文件: subjuBLL.cs 项目: newzl/examsou
 public static int save(subju m)
 {
     using (DAL.root.subjuDAL dal = new DAL.root.subjuDAL())
     {
         if (m.id > 0)
         {
             return(dal.update(m));
         }
         else
         {
             return(dal.save(m));
         }
     }
 }