I'm creating an app which consumes data from WCF webservice. I'm able to communicate with this webservice and send data back and forth.
The classes are defined inside the WCF service as documented here: http://developer.xamarin.com/guides/cross-platform/application_fundamentals/web_services/walkthrough_working_with_WCF/
In my app I create SQLite tables as documented here: http://developer.xamarin.com/guides/cross-platform/application_fundamentals/data/part_3_using_sqlite_orm/
Biggest difference between the above tutorial is that my class is not defined inside the app project, but inside the WCF. I'm able to create the tables, store data in it and read it, but I can't update a record since I don't have a primary key defined in my tables.
I know the tutorial states that primary key is marked with [PrimaryKey]
attribute but since my classes are defined in the WCF project I am not able to do that. Or is there a way to do so?
In short: How can I define the primary key in SQLite when my class is defined in WCF webservice.
Any help would be very much appreciated.