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
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to