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