Exemple #1
0
 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);
     }
 }
Exemple #2
0
 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);
     }
 }