【发布时间】:2017-04-01 05:17:50
【问题描述】:
我的项目有多个 .sqlite .
我使用 1 个 context ,1 个 persistentStoreCoordinator,链接到多个 persistentStores。
不知道[context assignObject : toPersistentStore]
之后不需要调用 [context save] 吗?
如果对象 A 与对象 B C D E F 有 5 个关系怎么办
我需要打电话吗? [context assignObject : B ..] [context assignObject : C ..] ...(等等)??为了保存整个分支的数据???
【问题讨论】: