【问题标题】:xcode: is there a way to import data/schema into the xcdatamodel file/directory?xcode:有没有办法将数据/模式导入 xcdatamodel 文件/目录?
【发布时间】:2010-11-11 13:59:36
【问题描述】:

有没有办法将现有数据或模式导入 xcode 中的 xcdatamodel 中?

如果没有,是否可以通过编程方式编写 xcdatamodel?

我在考虑是否可以通过编程方式创建 xcdatamodel,然后我可以编写一个实用程序,可以从给定的 .sql 文件生成 xcdatamodel

【问题讨论】:

    标签: objective-c xcode core-data


    【解决方案1】:

    这方面的例子很多。 Core Data 上的Marcus's book 有一个很好的例子,在 1 Infinite Loop 之外可能没有人比 Marcus 更了解 Core Data。 Core Data 编程指南中还有一些关于导入数据here 的内容。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-23
      • 1970-01-01
      • 2015-08-24
      • 2017-08-01
      • 2020-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多