How do uniqueness constraints as (comma,separated,attributes) work with Swift in CoreData?

让人想犯罪 __ 提交于 2019-12-11 16:42:19

问题


I only just noticed that each uniqueness constraint in CoreData can have multiple attributes (comma,separated,properties). I don't actually know what it does to have multiple attributes in one constraint though. Does it mean that if any of them are unique then the constraint is not broken? The Apple documentation is not particularly helpful:

Constraints: After adding attributes as shown in Configuring Attributes, optionally enter the name of an attribute (or comma-separated list of attributes) to serve as unique constraints on the entity.

来源:https://stackoverflow.com/questions/56285228/how-do-uniqueness-constraints-as-comma-separated-attributes-work-with-swift-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!