コード例 #1
0
        public List <PsPersianWordFrequency> GetAll()
        {
            List <PsPersianWordFrequency> tl = new List <PsPersianWordFrequency>();
            DataTable dt = gt.GetTableBySql("select * from PS_PersianWordFrequency ");

            foreach (DataRow item in dt.Rows)  //loop through the columns.
            {
                PsPersianWordFrequency DIC_PSWF = new PsPersianWordFrequency();

                DIC_PSWF.Val1   = item["Val1"].ToString().Trim();
                DIC_PSWF.Val2   = item["Val2"].ToString().Trim();
                DIC_PSWF.Sundex = item["SUNDEX"].ToString().Trim();
                DIC_PSWF.Lavel  = int.Parse(item["Lavel"].ToString().Trim());
                DIC_PSWF.Lexi   = int.Parse(item["lexi"].ToString().Trim());

                tl.Add(DIC_PSWF);
            }

            return(tl);
        }
コード例 #2
0
        public List <PsMokassarFa> GetAll()
        {
            List <PsMokassarFa> tl = new List <PsMokassarFa>();
            DataTable           dt = gt.GetTableBySql("SELECT ID,VAL1,VAL2 FROM PS_MOKASSAR_FA");

            foreach (DataRow item in dt.Rows)  //loop through the columns.
            {
                var x = new PsMokassarFa();
                x.Val1 = item["VAL1"].ToString();
                x.Val2 = item["VAL2"].ToString();

                tl.Add(x);
            }

            return(tl);
        }
コード例 #3
0
        public List <PsStopWord> GetAll()
        {
            List <PsStopWord> tl = new List <PsStopWord>();
            DataTable         dt = gt.GetTableBySql("select * from PS_StopWord");

            foreach (DataRow item in dt.Rows)  //loop through the columns.
            {
                PsStopWord RSC_STOPWORD = new PsStopWord();


                RSC_STOPWORD.Val1 = item["Val1"].ToString();

                tl.Add(RSC_STOPWORD);
            }

            return(tl);
        }