support value querying in Objective C

This commit is contained in:
John Rommel Estropia
2016-04-02 21:39:05 +09:00
parent b95aaf151d
commit aa32f5e158
9 changed files with 680 additions and 131 deletions

View File

@@ -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>(),