olzetek

3 posts / 0 new
Last post
Offline
Last seen: 7 years 3 months ago
Joined: 04/20/2017
Posts: 1
save received sample to sqlite database

I try to save received sample to sqlite database.

Please refer below Csharp code:

public void createDB()
{
    SQLiteConnection.CreateFile("sqlite.dat");
    SQLiteConnection dbConnection = new SQLiteConnection("Data Source=sqlite.dat;Version=3;");
    dbConnection.Open();

    string sql = "create table Data (data BLOB)";
    SQLiteCommand command = new SQLiteCommand(sql, dbConnection);
    command.ExecuteNonQuery();

Organization:
Subscribe to RSS - olzetek