The following code:
oc.CreateTablesAsync(typeof(ODataService.UserInformationListItem), typeof(ODataService.CategoriesItem), typeof(ODataService.PostsItem));
Gives me this exception:
System.NotSupportedException: Don't know about ODataApp.ODataService.UserInformationListItem
At first I was just creating a table for PostsItems, which is the object i need to store, but then I got the above exception but then for ODataApp.ODataService.CategoriesItem.
Since PostItem has the property Category, which is a List<CategoriesItem> I figured I had to add CategoriesItem as a table as well.
After doing so I got an error for the property CreatedBy on PostsItems, which is a UserInformationListItem, now this is when it gets tricky.
I also added UserInformationListItem to the CreateTables function which gave me my current problem.
The object UserInformationListItem also contains a CreatedBy property which is also an UserInformationListItem.
I'm looking for a way around this without having to alter or recreate local versions of these objects.
These objects are defined on Sharepoint which I cannot edit, and are obtained by the OData service reference. If anymore information is needed to supply me with an answer, please let me know