// 公用静态方法,插入一条记录 InsertCity public static bool InsertEntity(CityBusEntity obj) { CityInsert exec = new CityInsert(); try { exec.ReceiveParameter(obj); exec.ExecNoQuery(); return true; } catch (Exception ex) { //throw ex; return false; } finally { obj = null; } }
// 公用静态方法,插入一条记录 InsertCity public static bool InsertEntity(CityBusEntity obj) { CityInsert exec = new CityInsert(); try { exec.ReceiveParameter(obj); exec.ExecNoQuery(); return(true); } catch (Exception ex) { //throw ex; return(false); } finally { obj = null; } }