Search code examples
c#iosxamarin.iosdata-access-layersimple.data

Which Data access technology to use for Monotouch


I'm just wondering what people are using for a Data Access Layer in Monotouch? I'm working on a CRUD based app, and looking for something in between writing inline SQL or rolling my own ORM, and trying to wedge Entity Framework into the mix when it's not supported.

I'm tempted to try and use Simple.Data, but I'm not sure if it would even compile under Mono.


Solution

  • The answers depends on whether you want to store the data on-device or off (or, of course, both).

    For on-device storage, you can use the Sqlite database baked into iOS and access it through the Mono.Data.Sqlite driver.

    For off-device storage, I would recommend using a self-baked web service.