🚧 📱

Mobile experience coming soon

Mobile development is in progress. Until it is complete, please use your desktop or laptop.

Thanks!

← Back
IAmTimCorey July 10, 2023

How To Return a Record ID from SQL to C# on Insert

Summary

This tutorial demonstrates how to retrieve the ID of a newly inserted record when using Dapper with C# and SQL. It explains how to create an output parameter in SQL to return the generated ID and capture it in your C# application. The practical takeaway is to efficiently get the auto-generated primary key after an insert operation.

View original episode ↗