public void iDelTerInfo(string name) { string cnStr = ConfigurationManager.ConnectionStrings["sqlProviderParallelTask"].ConnectionString; TerLib te = new TerLib(cnStr); try { te.DeleteTerInfo(name); } catch (SqlException e) { WcfException ex = new WcfException(); ex.message = e.Message; throw new FaultException <WcfException>(ex, ex.message); } }
//地形操作 public string[] iGetTerNames() { string cnStr = ConfigurationManager.ConnectionStrings["sqlProviderParallelTask"].ConnectionString; TerLib te = new TerLib(cnStr); try { return(te.GetTerNames()); } catch (SqlException e) { WcfException ex = new WcfException(); ex.message = e.Message; throw new FaultException <WcfException>(ex, ex.message); } }