Esempio n. 1
0
        public string GetWordSimilarity(string wrold, int lavel)
        {
            //if similaritycash.count =0 use sql
            var r = gt.GetScalerBySql("select ifnull([key],'') as key from T_similarity_pos where value ='" + wrold +
                                      "' AND lavel=" + lavel);

            //elseS
            //use cash
            if (r.Trim().Length == 0)
            {
                r = wrold;
            }

            return(r);
        }
Esempio n. 2
0
 public string GetValueByKey(string key)
 {
     return(gt.GetScalerBySql("select Value from T_Setting where [Key]='" + key + "'"));
 }