Skip to content

Instance Property

model

An instance of the orignal model type. Holds returned data from lookups, and is used as a data source for CRUD operations.
var model: Self.Model { get }

Discussion

When applying an alias to data that will be returned from a query, set this property to Model.init() in the alias type’s initializer.

When applying an alias to data that will updated or removed, or for creation from pre-filled data, set this property to an existing model object.