.net - Utilizzo di SQLite con Visual Studio 2008 e Silverlight

original title: ".net - Using SQLite with Visual Studio 2008 and Silverlight"


Any one know decent way to reference a SQLite database using the above mentioned tools? I tried using ODBC (the SQLite driver) but while the connection is good, I get no data returned. Like I can't see any tables in Data Connection (VS 2008). Is there a better way?

Edit: corrected typos

Qualcuno conosce un modo decente per fare riferimento a un database SQLite utilizzando gli strumenti sopra menzionati? Ho provato a utilizzare ODBC (il driver SQLite) ma mentre la connessione è buona, non ottengo alcun dato restituito. Come posso '...

Questo è il riepilogo dopo la traduzione, se è necessario visualizzare la traduzione completa, fare clic sull'icona "traduci"

Tutte le risposte
  • Translate

    Joel Lucsy: That implementation of SQLite is a mixed-mode assembly which is not supported by Silverlight. Only a pure managed implementation would work under the Silverlight CLR.

  • Translate

    The MIT licensed C#-SQLite might be the right solution. It's a complete managed port of SQLite, so it can be used with Silverlight.

  • Translate

    Have you tried the ADO driver for SQLite?

    There is a great quick start guide (thanks to another thread here) that you can get here: http://web.archive.org/web/20100208133236/http://www.mikeduncan.com/sqlite-on-dotnet-in-3-mins/

  • Translate

    You should give Siaqodb a try. I haven't tested it but they mention that is works with Silverlight OOB apps and even give you a tutorial here.
    It's commercial software, but a 30 day trial is available.