Core数据数据库中的Z_PK列 [英] Z_PK Column in Core Data Database

查看:91
本文介绍了Core数据数据库中的Z_PK列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从Core Data创建的Z_PK列中获取数字?

Is it possible to fetch the number from the Z_PK column created by Core Data? If so, would you fetch this column the same way you would fetch attributes you created manually in the model?

推荐答案

您可以使用sqlite直接访问由CoreData创建的列。

You could use sqlite to directly access the columns created by CoreData.

但是,您不应该依赖于Z_PK或任何列来保持一致。模式可以在版本之间更改(且具有)。苹果已经在WWDC的视频中说过。

However, you shouldn't depend on Z_PK or any of the columns to stay consistent. The schema could change (and has) between releases. Apple has stated this in WWDC videos.

这篇关于Core数据数据库中的Z_PK列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆