/// <summary> /// 删除分组关联项 /// </summary> /// <param name="groupRelEntity"></param> /// <returns></returns> public bool DeleteGroupRel(EventItemGroupRelEntity groupRelEntity) { bool isSuccess = false; try { string delSQL = "DELETE FROM M_EventItem_Group_Rel WHERE EventGroupID=@EventGroupID AND EventItemID=@EventItemID"; SqlParameter[] prms = { new SqlParameter("@EventGroupID", groupRelEntity.EventGroupID), new SqlParameter("@EventItemID", groupRelEntity.EventItemID) }; isSuccess = SQlHelper.ExecuteNonQuery(SQlHelper.MyConnectStr, CommandType.Text, delSQL, prms) > 0; } catch (Exception ex) { LogUtil.WriteLog(ex); return(false); } return(isSuccess); }
/// <summary> /// 删除分组关联项 /// </summary> /// <param name="groupRelEntity"></param> /// <returns></returns> public bool DeleteGroupRel(EventItemGroupRelEntity groupRelEntity) { return(dao.DeleteGroupRel(groupRelEntity)); }