EntityManager.store

Stores the provided entity in the database

Does not set the entity ID. Returns it instead. This allows you to use the entity as a template.

struct EntityManager(DatabaseDriver)
@safe
ulong
store
(
TEntity
)
(
const TEntity entity
)
if (
isEntityType!TEntity
)
if (
isORMCompatible!DatabaseDriver
)

See Also

Meta