0
내가 작성 (명령 프롬프트에서) sqlite3를 명령 같은 것을 실행할 수 있습니다어떻게 표시 할 System.Data.SQLite 설정할 수 있습니까?
sqlite3 -header sms.db "select * from message"
또는 내가 Change SQLite default settings에 sqlite가의 기본 설정을 변경했습니다.
하지만 난 C# 및 System.Data.SQLite.dll 사용하고 다음 이러한 솔루션 중 하나가 ... 어떻게 headers on
설정할 수 있습니까?
내 C# 코드는 다음과 같다 :
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();