I'm starting out with Xamarin and sqlite, specifically this package:
https://github.com/oysteinkrog/SQLite.Net-PCL
There is no fluent api (IE like in Entity Framework), which is OK, but instead, does anyone have a pattern to keep the attributes, such as [PrimaryKey]
out of the domain model so that my domain library doesn't need a reference to the sqlite libraries? The only way I can see is to create separate classes in my sqlite repo library for each of my domain classes, and employ some kind of mapping scheme. But that seems a lot of work just to avoid an attribute. In fact, in this case it's probably easier just to bang out the sql and do it that way instead of using SQLite.Net-PCL's built-in ORM.
It's probably worth it in my case to just litter my domain with the attributes and create a dependency on the SQLite.Net-PCL library.
Are there any other libraries that i can use with xamarin/PCL that might help? Or is there a better technique?