4 ms·
> Support RETURNING clause on DELETE, INSERT, and UPDATE statements. I really enjoyed this one due to the elegance. We converted a bunch of normal methods into
by bob1029 4y ago
> Support RETURNING clause on DELETE, INSERT, and UPDATE statements.
I really enjoyed this one due to the elegance. We converted a bunch of normal methods into expressions because we could write them like:
public long CreateCustomerRecord(string name, string email) =>
sql.ExecuteScalar<long>(@"INSERT INTO Customers (...)
VALUES (...)
RETURNING Id", new
{
//Param bindings
});
- deleted 4y ago[deleted]