Property

public struct Property<E, T> where E : Entity, T : EntityPropertyTypeConvertible

Metadata of object properties, used by the framework to determine how to store the values.

These are created by the code generator for you.

  • Entity type that contains the property this object is describing.

    Declaration

    Swift

    public typealias EntityType = E
  • Supported property value type this is describing.

    Declaration

    Swift

    public typealias ValueType = T
  • Undocumented

    Declaration

    Swift

    public init(propertyId: UInt64, isPrimaryKey: Bool = false)
  • Indicates if the property is the entity’s primary key.

    Declaration

    Swift

    public var isPrimaryKey: Bool { get }
  • The internal ID of the property, in terms of the database schema.

    Declaration

    Swift

    public var propertyId: UInt64 { get }