title: SQLite simple insert query
body: <p>I'm trying to use SQLite as my storage. I've added reference dll using nuget and using statement as well.</p>
  
  <p>I have </p>
  
  <pre><code>private void SetConnection()
  {
              sql_con = new SQLiteConnection
                  ("Data Source=c:\\Dev\\MYApp.sqlite;Version=3;New=False;Compress=True;");
  }
  
  private void ExecuteQuery(string txtQuery)
  {
              SetConnection();
              sql_con.Open();
              sql_cmd = sql_con.CreateCommand();
              sql_cmd.CommandText = txtQuery;
              sql_cmd.ExecuteNonQuery();
              sql_con.Close(); 
  }
  </code></pre>
  
  <p>and I'm sending query txt like this</p>
  
  <pre><code>public void Create(Book book)
  {
              string txtSqlQuery  = "INSERT INTO Book (Id, Title, Language, PublicationDate, Publisher, Edition, OfficialUrl, Description, EBookFormat) ";
              txtSqlQuery += string.Format("VALUES (@{0},@{1},@{2},@{3},@{4},@{5},@{6},@{7},{8})", 
                          book.Id, book.Title, book.Language, book.PublicationDate, book.Publisher, book.Edition, book.OfficialUrl, book.Description, book.EBookFormat);
                     try
                     {
                         ExecuteQuery(txtSqlQuery);
                     }
                     catch (Exception ex )
                     {
                         throw new Exception(ex.Message);
                     }    
  }
  </code></pre>
  
  <p>My db is correctly created and passed book instance with valid data is ok. But exception is thrown always on executing query on this line of code:</p>
  
  <pre><code>sql_cmd.ExecuteNonQuery();
  </code></pre>
  
  <p>I obviously doing something wrong here but I cannot see.</p>
  
  <p>Update: thrown exception message is</p>
  
  <blockquote>
    <p>SQL logic error or missing database</p>
    
    <p>unrecognized token: "22cf" </p>
  </blockquote>
  
  <p>where this <code>22cf</code> is part of passed <code>book.Id</code> guid string.</p>