Hi, I use System.Data.SQLite in Mac OS X, Linux, Windows and Windows CE, and Mono.Data.Sqlite in MonoTouch.
#if MonoTouch using Mono.Data.Sqlite; #else using System.Data.SQLite; #endif #if MonoTouch using SQLiteConnection = Mono.Data.Sqlite.SqliteConnection; using SQLiteCommand = Mono.Data.Sqlite.SqliteCommand; using SQLiteDataAdapter = Mono.Data.Sqlite.SqliteDataAdapter; using SQLiteException = Mono.Data.Sqlite.SqliteException; using SQLiteParameter = Mono.Data.Sqlite.SqliteParameter; using SQLiteTransaction = Mono.Data.Sqlite.SqliteTransaction; #endif And no more #ifs or any change to the code :p Just define MonoDroid and use that snippet (changing MonoTouch to MonoDroid) El 19/07/2011, a las 14:38, [email protected] escribió: > The problem is: > Not an implementation of IDbConnection and its family. This is not a full > SQLite driver. If you need that, go get System.Data.SQLite orcsharp-sqlite. > I need the IDbConnection and need to work with monodroid > > 2011/7/19 Greg Shackles <[email protected]> > It works well with Mono For Android as well: > http://www.gregshackles.com/2011/02/using-a-database-in-monodroid-applications/ > > > On Tue, Jul 19, 2011 at 9:12 AM, [email protected] > <[email protected]> wrote: > This one works with monodroid or only monotouch ? > > > 2011/7/19 Carlo Bolz <[email protected]> > Then use http://code.google.com/p/sqlite-net/ . It als includes a light > weight O/R mapper. But mainly you can change the Namespace so it fits with > both projects and/or assemblies. > > > > Regards > > Carlo > > > > Von: [email protected] > [mailto:[email protected]] Im Auftrag von > [email protected] > Gesendet: Dienstag, 19. Juli 2011 01:18 > An: Discussions related to Mono for Android > Betreff: Re: [mono-android] Antwort: Windows CE Interop > > > > The problem that i`m getting that is really painfull is with the Sqlite > Assembly in mono the assembly use Sqlite but in ce they use SQLite this is > the only diference the caption os the classes there is any work around ? > > 2011/7/18 <[email protected]> > > > I dont have an example i can give you, but we are working as you deschribed. > For WinCE, Android, WP7 und iOS. The basic idea is to share the code beetween > different projects. Create one Visual Studio Project for each platform you > want to target. Then develop as usual in opf of the projects and add all the > files to the other project als link. Use only code that works on both > plattforms or in case this is not possible write a solution for each platform > and don't share the files between the two projects. > > > > > "[email protected]" <[email protected]> > Gesendet von: [email protected] > > 19.07.2011 00:49 > > Bitte antworten an > Discussions related to Mono for Android <[email protected]> > > An > > [email protected] > > Kopie > > Thema > > [mono-android] Windows CE Interop > > > > > > > I Wish to make one class lobrary that would be used in my android an my > windows CE project there is any way to do that ? > If there is any one have any sample project ? > > Thx a lot guys_______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > > > > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > > > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > > > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid
PGP.sig
Description: Mensaje firmado digitalmente
_______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
