[Mono-dev] Mono with SQLite

Rafael Teixeira monoman at gmail.com
Tue Jan 6 09:05:48 EST 2009


From the site:
"*System.Data.SQLite ***is the original SQLite <http://www.sqlite.org/>database
engine and a complete ADO.NET 2.0 provider all rolled into a single *mixed
mode* assembly"

Mixed mode assemblies aren´t portable, period. They contain x86 native code
in Windows-specific format, so it won't run in any other OSes or any other
CPU architecture.

If you really need a portable solution (across OSes) you should use
Mono.Data.SqliteClient, and package both native library versions o sqlite
(.dll and .so), the correct one will be used automatically by the managed
provider. CPU portability is harder to tackle, and would only be reasonable
to achieve by implementing a 100% managed version of the engine+provider.

Hope it helps,


2009/1/6 FXHat - <fxhat.mail at gmail.com>

> I'm working on porting my .NET application to Mono. My application runs
> perfectly fine on .NET. According to MoMA, the application itself has no
> problems at all. I'm using SQLite however that causes some problems.
>
> I'm using the System.Data.SQLite provider from
> http://sqlite.phxsoftware.com . As I understand it, Mono uses the same
> code so it's no use switching to Mono.Data.SqliteClient. I've already
> created a topic on the website above with my problem, but that resolved
> little.
>
> http://sqlite.phxsoftware.com/forums/t/1562.aspx ( 7 posts total ).
>
> (Link contains details about problem).
>
> Are there any suggestions as to what I can try to make my application cross
> platform. I would like to have only 1 version for both .Net and Mono.
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>


-- 
Rafael "Monoman" Teixeira
---------------------------------------
"I myself am made entirely of flaws, stitched together with good
intentions."
Augusten Burroughs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090106/ba9ae2d8/attachment.html 


More information about the Mono-devel-list mailing list