How to define CoreData relationship in Swift?

前端 未结 4 1539
天命终不由人
天命终不由人 2020-12-17 18:04

In CoreData, I have defined an unordered to-many relationship from Node to Tag. I\'ve created an Swift entity like this:

import Cor         


        
4条回答
  •  长情又很酷
    2020-12-17 18:22

    Actually you can just define:

    @NSManaged var employees: Set
    

    And use the insert and remove methods of the Set directly.

提交回复
热议问题