public object insertByNewMapper(string statementName, object param) { try { return(MapperDAO.NewMapper().Insert(statementName, param)); } catch (Exception e) { throw new Exception(String.Format("执行出错{0}' Insert. 错误描述: {1}", statementName, e.Message), e); } }
public int updateByMapper(string statementName, object param) { try { return(MapperDAO.NewMapper().Update(statementName, param)); } catch (Exception e) { throw new Exception(String.Format("执行出错{0}' update. 错误描述: {1}", statementName, e.Message), e); } }