Alternative way to get output parameter from stored procedure
I love using Dapper for my ORM needs but I know there must be a better way to insert/update my sql server database using a stored procedure and strongly typed Lists. For example: I have a class Song: public class Song { public int Id { get; set; } public string title { get; set; } public string genre { get; set; } } and somebody submits a List of songs: List<Song> songs = new List<Song> { new Song { Id = 1, title = "Song 1" , genre="rock"}, new Song { Id = 2, title = "Song 2" , genre="disco"}}; I want to update the database using my stored procedure which either inserts the new song or updates