/// <summary> /// (基础成员)修改实体对象(事务中) /// </summary> /// <param name="obj">实体对象</param> /// <param name="ts">事务</param> public void UpdEntityObject(r_Log obj, Transaction ts) { try { obj.Update(ts); } catch (PersistenceLayerException exp) { throw new Exception(exp.ErrorMessage); } }
/// <summary> /// (基础成员)修改实体对象 /// </summary> /// <param name="obj">实体对象</param> public void UpdEntityObject(r_Log obj) { try { obj.Update(); } catch (PersistenceLayerException exp) { ErrorLog.Write(exp, exp.ErrorMessage); throw new Exception(exp.ErrorMessage); } }