Пример #1
0
        //检查标签点是否存在
        #region 检查标签点在实时数据库中是否存在 public  List<String> CheckTags(string[] tagnames)
        public List <string> CheckTags(string[] tagnames)
        /// <summary>
        /// 检查标签点在实时数据库中是否存在
        /// </summary>
        /// <returns>在数据库中不存在的标签列表</returns>
        {
            List <string> results = new List <string>();

            //rtdbHelper.Logon();       //在PGIMSpecial下,使用长连接
            results = rtdbHelper.CheckTags(tagnames);
            //rtdbHelper.Logoff();      //在PGIMSpecial下,使用长连接
            return(results);
        }
Пример #2
0
        //检查标签点是否存在
        #region 检查标签点在实时数据库中是否存在 public  List<String> CheckTags(string[] tagnames)
        public List <string> CheckTags(string[] tagnames)
        /// <summary>
        /// 检查标签点在实时数据库中是否存在
        /// </summary>
        /// <returns>在数据库中不存在的标签列表</returns>
        {
            List <string> results = new List <string>();

            rtdbHelper.Logon();
            results = rtdbHelper.CheckTags(tagnames);
            rtdbHelper.Logoff();        //golden3.0采用连接池,每次使用完毕,使用logoff释放连接资源
            return(results);
        }