Пример #1
0
        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);
            }
        }
Пример #2
0
        //地形操作
        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);
            }
        }