/// <summary> /// (基础成员)取回实体对象(事务中) /// </summary> /// <param name="logid"></param> /// <param name="ts">事务</param> /// <returns></returns> public r_Log GetEntityObject(System.Int32 logid, Transaction ts) { r_Log obj = new r_Log(); obj.LogID = logid; obj.Retrieve(ts); return(obj); }
/// <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); } }
/// <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); } }