开发者

xcode: is there a way to import data/schema into the xcdatamodel file/directory?

开发者 https://www.devze.com 2023-01-24 08:19 出处:网络
Is there a way to import existing data or schema into the xcdatamodel in xcode?开发者_Go百科 If not, is it possible to programmically write the xcdatamodel?

Is there a way to import existing data or schema into the xcdatamodel in xcode?

开发者_Go百科

If not, is it possible to programmically write the xcdatamodel?

I was thinking if it is possible to create the xcdatamodel programmically then I can write a utility that can generate the xcdatamodel from a give .sql file


There are lots of examples of this. Marcus's book on Core Data has a great example and there's probably no one outside of 1 Infinite Loop that knows more about Core Data than Marcus. There's also a bit in the Core Data programming guide about importing data here.

0

精彩评论

暂无评论...
验证码 换一张
取 消