mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-29 20:02:35 +01:00
commit
c8ca16a982
1 file changed
+1
-1
@@ -733,7 +733,7 @@ or multiple objects at once with the `importUniqueObjects(...)` method:
|
|||||||
```swift
|
```swift
|
||||||
CoreStore.beginAsynchronous { (transaction) -> Void in
|
CoreStore.beginAsynchronous { (transaction) -> Void in
|
||||||
let jsonArray: [[String: AnyObject]] = // ...
|
let jsonArray: [[String: AnyObject]] = // ...
|
||||||
try! transaction.importObjects(
|
try! transaction.importUniqueObjects(
|
||||||
Into(MyPersonEntity),
|
Into(MyPersonEntity),
|
||||||
sourceArray: jsonArray
|
sourceArray: jsonArray
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user