Database.insert

Inserts a new entity into the database. This method does not alter the entity: to update it after an insert use select.

class Database
void
insert
(
T : Entity
)
(,
bool updateId = true
)

Examples

Test test = new Test();
test.a = 55;
test.b = "Test";
database.insert(test);

Meta