Dapper .NET
Published in

Dapper .NET

One-To-Many mapping with Dapper and JSON

A nice way to deal with 1:N relationships and complex objects, two very common requests when dealing with databases

{
"EmailAddress": "info@davidemauri.it",
"FirstName": "Davide",
"Id": 5,
"LastName": "Mauri",
"Tags": [
{
"Name": "Developer"
},
{
"Name": "Data Guy"
}
]
}

Samples

Conclusion

What’s Next

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Davide Mauri

Data Geek, Storyteller, Developer at heart, now infiltrated in Azure SQL product group to make sure developers voice is heard loud and clear. Heavy Metal fan.