i can write and execute something like this with sqlite3 command (in command prompt):
sqlite3 -header sms.db "select * from message"
or i found changing default setting of sqlite in Change SQLite default settings.
but i'm using c# and System.Data.SQLite.dll and then i haven't any of these solution... how can i set headers on
?
my c# code is like this:
SQLiteConnection connection = new SQLiteConnection("Data Source=" + path);
connection.Open();
SQLiteDataReader reader = new SQLiteCommand(connection) { CommandText = "select * from message" }.ExecuteReader();
while (reader.Read())
{
//...
}
reader.Close();
connection.Close();