SQLite on windows and mono?

After reading the question How can I conditionally compile my C # for Mono vs. Microsoft .NET and see this great answer

I was wondering if there is a way to compile using both sqlite for .NET and the monos version. On Windows, I should not require a monophonic lib to exist, but on / runtime monosystems I only need a monos link. The next part is in the code, I use the namespace System.Data.SQLiteOR Mono.Data.SqliteI cannot do both due to a collision of the name and class.

I'm not sure what to do. Maybe I should use the monos version, but I do not want to find out the hardware if I should use the mono version for this link (which has a good chance of what you need). How to use SQLite in a way that works on Windows and on mono?

+5
source share
1 answer

Mono.Data.Sqlite works with windows, linux and OSX (and possibly a tanning bed too). You should be able to replace System.Data.Sqlite with this, (SDS was an MDS plug, I think)

System.Data.SQLite I think the code is completely managed. Although Mono.Data.SQLite is a managed wrapper around a real C sqlite library. For my use, this library is a little faster than fully managed.

+2
source

All Articles