示例#1
0
        /// <summary>
        /// 删除指定主键的批次信息表
        /// </summary>
        /// <param name="groupID">批次号</param>
        /// <returns>成功/失败</returns>
        public bool Delete(Guid groupID)
        {
            bool ret = false;

            try
            {
                Session.Open();
                Session.BeginTransaction();
                ret = _dal.Delete(groupID);
                Session.CommitTransaction();
            }
            catch (Exception err)
            {
                ret = false;
                Log.Error("删除数据失败", err);
                Session.RollBackTransaction();
            }
            finally
            {
                Session.Close();
            }
            return(ret);
        }