DapperLib / Dapper.Contrib

Dapper community contributions - additional extensions for Dapper
Other
267 stars 99 forks source link

Scope_Identity on Insert #137

Open rfphill opened 2 years ago

rfphill commented 2 years ago

The InsertAsync method is supposed to return the key of the record just inserted. For me, I get a 0. I've spent a half day looking for answers and if there was a remedy (SET NOCOUNT ON, for instance) I tried it.

I'm using SQL Server.

The only thing I can do here is report it as an issue.