ReadonlybulkDeletes multiple instances at once.
ReadonlybulkInserts multiple objects at once. Can often see great optimizations in some databases.
ReadonlycountCounts the number of models saved in the database.
ReadonlycreateCreates an instance of this model with the data that is provided.
The data that makes up an instance of the model.
NOTE: A tradeoff was made between supporting the DataDescription vs a ToObjectReturn
ReadonlycreateCreates and saves an instance. An optimization in some databases
ReadonlydeleteDeletes an instance by its id.
The id to delete
ReadonlygetGets the Api Information on the model.
This will take what is manually provided via the ModelDefinition and autopopulate everything that is possible with default values, or values that make sense based on the ApiInformation provided.
ReadonlygetGets the metadata that describes the model.
ReadonlygetThis is a unique name combining namespace + pluralName. This can be used as a key to uniquely identify this model across an entire system. Example: pluralName=MyModels namespace=@my-package/namespace
Return: '@my-package/namespace-my-models'
ReadonlygetGets the primary key of instance data. This helpful method shortcuts having to figure out the primaryKey's name and then reaching inside the instance data to get the primary key.
The underlying instance data that has the primary key.
ReadonlyretrieveAttempts to get an instance by its id
ReadonlysaveSave the model
The instance to save.
ReadonlysearchSearches instances by the provided search query
ReadonlysearchSearches for a single instance with the given query.
A model that has ORM functions attached.