0
我在Core Data中有一個Book實體,而Book類是模型層。一次多個屬性的核心數據setValue
我的書模型有多個屬性。當談到堅持核心數據的書的時候,我想將它們存儲,而無需做
bookObject.setValue(book.title , forKey: "name")
bookObject.setValue(book.author , forKey: "author")
bookObject.setValue(book.datePublished , forKey: "datePublished")
etc...
是否有設置多個CoreData實體屬性一次類似的setValue的方法?