//放弃批号时,删除平行样用 public static void delete(RegNo_DI reg) { using (ISession session = SessionHelper.GetSession()) { session.Delete(reg); session.Flush(); } }
//从PDI表查处数据塞入新表 public static void Save( RegNo_DI tem) { using (ISession session = SessionHelper.GetSession()) { session.Save(tem); session.Flush(); session.Close(); } }