/// <summary> /// (基础成员)删除实体对象(事务中) /// </summary> /// <param name="logid"></param> /// <param name="ts">事务</param> public void DelEntityObject(System.Int32 logid, Transaction ts) { r_Log obj = new r_Log(); obj.LogID = logid; try { obj.Delete(ts); } catch (PersistenceLayerException exp) { throw new Exception(exp.ErrorMessage); } }
/// <summary> /// (基础成员)删除实体对象 /// </summary> /// <param name="logid"></param> public void DelEntityObject(System.Int32 logid) { r_Log obj = new r_Log(); obj.LogID = logid; try { obj.Delete(); } catch (PersistenceLayerException exp) { ErrorLog.Write(exp, exp.ErrorMessage); throw new Exception(exp.ErrorMessage); } }