mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-13 12:23:49 +01:00
renamed Field.Computed to Field.Virtual to distinguish from Field.Derived
This commit is contained in:
1 parent
e9c3312612
commit
f0f4049798
10 files changed
+54
-34
No files matched your search
@@ -100,14 +100,14 @@ class Person: CoreStoreObject {
|
||||
@Field.Stored("name", customSetter: Person.setName(_:_:))
|
||||
var name: String = ""
|
||||
|
||||
@Field.Computed(
|
||||
@Field.Virtual(
|
||||
"displayName",
|
||||
customGetter: Person.getDisplayName(_:),
|
||||
affectedByKeyPaths: Person.keyPathsAffectingDisplayName()
|
||||
)
|
||||
var displayName: String?
|
||||
|
||||
@Field.Computed(
|
||||
@Field.Virtual(
|
||||
"customType",
|
||||
customGetter: Person.getCustomField(_:)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user