[Mono-list] Assembly / Namespace mapping (ASP.NET / SQLite)

Timothy Parez timothyparez at gmail.com
Fri Feb 8 16:38:42 EST 2008


Hi,

I have a	 website which I develop on Windows and deploy on Linux.
I'm using SQLite which works on both platforms.

The only differences are

using System.Data.SQLite
vs
using Mono.Data.Sqlite

And for the classes:

SQLiteConnection
vs
SqliteConnection

Aside from these differences, the code to use these libraries is the  
same.

This means I have to use a series of sed commands to replace pieces of  
text.
This isn't a real problem for final deployment, but can be a real PITA  
when testing online.

Is there anyway to map these so I can keep System.Data.SQlite and  
SQLiteConnection, SQLiteCommand, etc... in my code
and still force mono to use System.Data.Sqlite instead?

(Guess changing the source code for Mono.Data.Sqlite would also be an  
option... but I'm hoping for something less drastic).

Thank you.

Timothy.


More information about the Mono-list mailing list