Exemple #1
0
        public void TestInsertDPListToGrp_Get_Delete_01()
        {
            List <EtyDataPoint> datapointList = new List <EtyDataPoint>();
            EtyDataPoint        dp            = new EtyDataPoint();

            dp.DisplayName = "test_DispName";
            dp.Description = "test_desc";
            dp.DPName      = "test_DP_Name";
            string grpName = "test_grpName";

            dp.DPServer  = "TransActiveDataSource";
            dp.DPHost    = TestDBInit.HOST_NAME;
            dp.DPLblName = "LblName";
            datapointList.Add(dp);

            dataPointDao.SaveDPListToGrp(datapointList, grpName);
            //dataPointDao.InsertDPListToGrp(datapointList, grpName);

            dataPointDao.GetDPByCfgName(grpName);

            dataPointDao.DeleteAllDPInGrp(grpName);
        }
Exemple #2
0
        public List <EtyDataPoint> GetDPListByGrp(string grpName)
        {
            DataPointDAO dpDAO = new DataPointDAO();

            return(dpDAO.GetDPByCfgName(grpName));
        }