[Mono-list] SqlLite

Kamil Skalski kamil.skalski at gmail.com
Wed Nov 29 14:09:01 EST 2006


On 11/29/06, Trimble, Nathan G <nathan.trimble at pnl.gov> wrote:
> Hello, hope this is not a dumb question.  I have an application that
> uses SQLite.  I'd like it to run under both .Net 1.1 and Mono.  Can I
> use Mono.Data.SqliteClient.dll under both frameworks?  What is the

Of course. Mono.Data.SqliteClient.dll pinvokes correctly to Sqlite
under both platforms.

> preferred method of running assemblies from the Mono namespace under
> MS's framework?  Thanks.

You just reference the assembly, and type something like this in your
source code:

using Mono.Data.SqliteClient;
...
SqliteConnection conn = new SqliteConnection ("file://myfile.db,version=3");
...



-- 
Kamil Skalski
http://nazgul.omega.pl


More information about the Mono-list mailing list