-
Notifications
You must be signed in to change notification settings - Fork 22
Insert Command Builder
Grauenwolf edited this page Mar 26, 2016
·
1 revision
The command performs an insert using the provided model.
If the materializer desires columns, this echos back the newly inserted row.
This command is meant to operate on one row at a time.
Implementation of the insert varies by database.
SQL Server uses an INSERT statement with an optional OUTPUT clause.
SQLite uses a separate INSERT and optional SELECT statement.
We should create set-based insert. The biggest question is how to handle the materializer, as we may not necessarily be able to match up the returned identity values with the original objects.