mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-16 14:06:53 +01:00
renamed Field.Computed to Field.Virtual to distinguish from Field.Derived
This commit is contained in:
@@ -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