StringQuery() public method

执行查询SQL,返回查询结果的首行首列
public StringQuery ( string sql, SQLiteParameter parameters ) : string
sql string sql语句
parameters System.Data.SQLite.SQLiteParameter 参数
return string
Ejemplo n.º 1
0
 public string GetDefaultSearch()
 {
     string result = string.Empty;
     try
     {
         string sqlString = @"select Value  from t_config where Name = 'DefaultSearch'";
         SqlAction action = new SqlAction();
         result = action.StringQuery(sqlString, null);
     }
     catch
     {
     }
     return result;
 }