[Mono-dev] Mono with SQLite

Robert Simpson sqlite_list at bcsft.com
Tue Jan 6 13:02:49 EST 2009


You didn’t read far enough down my website …

 

Mono support

A managed-only version of the provider is also available that works on Mono against the official SQLite library from http://www.sqlite.org/.  Requires 3.6.1 or higher.

 

My apologies on not answering your thread on the forums – I’ve been on vacation over the holidays.

 

 

From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Rafael Teixeira
Sent: Tuesday, January 06, 2009 7:06 AM
To: FXHat -
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] Mono with SQLite

 

>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 <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/2a085f27/attachment-0001.html 


More information about the Mono-devel-list mailing list