Beispiel #1
0
        //放弃批号时,删除平行样用
        public static void delete(RegNo_DI reg)
        {
            using (ISession session = SessionHelper.GetSession())
            {

                session.Delete(reg);
               session.Flush();

            }
        }
Beispiel #2
0
 //从PDI表查处数据塞入新表
 public static void Save( RegNo_DI tem)
 {
     using (ISession session = SessionHelper.GetSession())
     {
         session.Save(tem);
         session.Flush();
         session.Close();
     }
 }