mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-02-21 15:17:45 +01:00
renamed Field.Computed to Field.Virtual to distinguish from Field.Derived
This commit is contained in:
@@ -40,7 +40,7 @@ extension FieldContainer {
|
||||
@Field.Stored("species")
|
||||
var species = ""
|
||||
|
||||
@Field.Computed("pluralName", customGetter: Animal.pluralName(_:))
|
||||
@Field.Virtual("pluralName", customGetter: Animal.pluralName(_:))
|
||||
var pluralName: String = ""
|
||||
|
||||
@Field.PlistCoded("color")
|
||||
@@ -62,7 +62,7 @@ extension FieldContainer {
|
||||
@Field.Stored("name")
|
||||
var name: String = ""
|
||||
|
||||
@Field.Computed("displayName", customGetter: Person.getName(_:))
|
||||
@Field.Virtual("displayName", customGetter: Person.getName(_:))
|
||||
var displayName: String = ""
|
||||
|
||||
private static func getName(_ partialObject: PartialObject<Person>) -> String {
|
||||
@@ -366,7 +366,7 @@ extension FieldContainer.Coded where V: FieldOptionalType {
|
||||
@Field.Stored("name")
|
||||
var name: String = ""
|
||||
|
||||
@Field.Computed("displayName", customGetter: Person.getName(_:))
|
||||
@Field.Virtual("displayName", customGetter: Person.getName(_:))
|
||||
var displayName: String = ""
|
||||
|
||||
private static func getName(_ partialObject: PartialObject<Person>) -> String {
|
||||
@@ -454,7 +454,7 @@ extension FieldContainer.Coded where V: DefaultNSSecureCodable {
|
||||
@Field.Stored("name")
|
||||
var name: String = ""
|
||||
|
||||
@Field.Computed("displayName", customGetter: Person.getName(_:))
|
||||
@Field.Virtual("displayName", customGetter: Person.getName(_:))
|
||||
var displayName: String = ""
|
||||
|
||||
private static func getName(_ partialObject: PartialObject<Person>) -> String {
|
||||
|
||||
Reference in New Issue
Block a user