When using normal SQL commands, it's possible to get the ID of a record that was just inserted using scope_identity. Is there an equivalent when using IRepository?
My service file has the following (this is not a ContentPart):
UnitType = ...,
UnitNumber = ...
I then need to pass the ID of the new UnitRecord to another method to create a record in a different table. I suppose I could just sort the table descending by the ID and select the first record, but I'd be more comfortable specifically passing the new ID.