Originally created by @idsky2 on GitHub (May 2, 2022).
Your readme has let newPerson = dataStack.fetchOne(From<Person>.where(\.name == "John"))
I'm just figuring out CoreStore but I think that should now be let newPerson = dataStack.fetchOne(From<Person>.where(\.$name == "John"))
otherwise I get an error that my class needs to inherit from NSManagedObject.
Originally created by @idsky2 on GitHub (May 2, 2022).
Your readme has
`let newPerson = dataStack.fetchOne(From<Person>.where(\.name == "John"))`
I'm just figuring out CoreStore but I think that should now be
`let newPerson = dataStack.fetchOne(From<Person>.where(\.$name == "John"))`
otherwise I get an error that my class needs to inherit from NSManagedObject.
Thanks. Both syntaxes are correct depending if you're using CoreStoreObject or NSManagedObject subclasses. But since the rest of the README uses the propertyWrapper syntax, I'll try to make it more consistent.
@JohnEstropia commented on GitHub (May 2, 2022):
Thanks. Both syntaxes are correct depending if you're using `CoreStoreObject` or `NSManagedObject` subclasses. But since the rest of the README uses the propertyWrapper syntax, I'll try to make it more consistent.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @idsky2 on GitHub (May 2, 2022).
Your readme has
let newPerson = dataStack.fetchOne(From<Person>.where(\.name == "John"))I'm just figuring out CoreStore but I think that should now be
let newPerson = dataStack.fetchOne(From<Person>.where(\.$name == "John"))otherwise I get an error that my class needs to inherit from NSManagedObject.
@JohnEstropia commented on GitHub (May 2, 2022):
Thanks. Both syntaxes are correct depending if you're using
CoreStoreObjectorNSManagedObjectsubclasses. But since the rest of the README uses the propertyWrapper syntax, I'll try to make it more consistent.