public int Delete(SysAgentCityMapping entity)
 {
     try
     {
         Object result  = baseDao.Delete <SysAgentCityMapping>(entity);
         int    iReturn = Convert.ToInt32(result);
         return(iReturn);
     }
     catch (Exception ex)
     {
         throw new DalException("调用ActivityDirectRules时,访问Delete时出错", ex);
     }
 }
 public long Insert(SysAgentCityMapping entity)
 {
     try
     {
         Object result  = baseDao.Insert <SysAgentCityMapping>(entity);
         long   iReturn = Convert.ToInt64(result);
         return(iReturn);
     }
     catch (Exception ex)
     {
         throw new DalException("调用ActivityDirectRules时,访问Update时出错", ex);
     }
 }