public void SetValueByKey(string key, string value) { var s = string.Empty; s = "update T_Setting set Value='" + value + "' where key='" + key + "'"; gt.SetBySql(s); }
public void DeleteByName(string word) { try { var strsql = "delete from PS_PersianWordFrequency where val1='" + word.Replace("'", "") + "'"; gt.SetBySql(strsql); } catch { } }