Thanks jon for the response, I habr to admit that I am new with Mono. I tryed to establish a connection with Sqlite in monodroid. I am still having trouble with the database. If i put the file in the root of the project would my conn string be this: Data Source=myfile.db?
How do I for example make a login function that executes a simple select query to the database and returns the amount of rows? I couldnt found that method yet, hope you could help me with a little example! I appreciate your help, thanks - Mittchel Op 14 sep. 2011 om 21:35 heeft Jonathan Pryor <j...@xamarin.com> het volgende geschreven: > On Sep 14, 2011, at 8:22 AM, Mittchel Van Vliet wrote: >> I'd like to make one application useable for both MonoTouch and Mono for >> android.. but how do I connect to SQLite from scratch? > > Use Mono.Data.Sqlite, e.g.: > > > https://github.com/xamarin/monotouch-samples/blob/master/MonoCatalog-MonoDevelop/MonoDataSqlite.xib.cs#L228 > > The GetConnection() method should work identically on both MonoTouch and Mono > for Android, along with the related GetItemCount() and related methods. If > you avoid DataTable and stick to the SqliteConnection and SqliteCommand > types, you should be fine. > > - Jon > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid