mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-20 08:34:23 +01:00
support value querying in Objective C
This commit is contained in:
@@ -88,6 +88,11 @@ class CoreStoreTests: XCTestCase {
|
||||
obj1.testString = "lololol"
|
||||
obj1.testNumber = 42
|
||||
obj1.testDate = NSDate()
|
||||
let objID = transaction.queryValue(
|
||||
From(TestEntity1),
|
||||
Select<NSManagedObjectID>(.Attribute("testEntityID"))
|
||||
)
|
||||
print(objID)
|
||||
|
||||
let count = transaction.queryValue(
|
||||
From<TestEntity1>(),
|
||||
|
||||
Reference in New Issue
Block a user