Can I use xcdatamodel kernel model relationships with Restkit?

As I understand it, RestKit provides integration with the Java Basic database by creating and populating Core Data associations for you, allowing you to crawl your data model based on a natural property.

However, I am not sure if I can still use xcdatamodel with RestKit and cannot find any links, tutorials on whether RestKit can use xcdatamodel (master data modeling tool) or not.

My prototype application is an application for company structure; i.e:

Company -< Departments -< Employees Company -< Suppliers ..etc 

In addition, I created some simple properties / Templates for collecting specific data; however, I'm not sure if I start using RestKit, can I use these tools / methods through xcdatamodel, or rather, I will have to manually encode them.

So my question is: can I still model complex applications / data using xcdatamodel, complete with selected properties, etc., and then talk to RestKit; and if so, can someone help point to a tutorial site about this?

Thanks.

+6
source share
2 answers

Yes, you can use xcdatamodel. See an example RKCatalog application - RKCoreDataExample uses it without a problem.

+5
source

You can also use the mogenerator tool. Where in the "machine" files will be all the mechanics of CoreData, and in the "humane" files the material associated with RestKit will be configured.

0
source

Source: https://habr.com/ru/post/892925/


All Articles