In C#, we deal with complex objects that have nested objects inside of them. In SQL, a query returns flat rows. Those two structures don’t match up well. Entity Framework allows us to return complex objects, not just rows. But how do we do the same thing using Dapper? In this video, we will look at how to load Order objects, each with a list of order details inside of them. We will look at multiple ways to accomplish the task using Dapper, as well as how this can be much more efficient than the default method in Entity Framework.

Full Training Courses: https://IAmTimCorey.com
Source Code: https://leadmagnets.app/?Resource=DapperComplexObjects />Patreon: https://www.patreon.com/IAmTimCorey
Mailing List: https://signup.iamtimcorey.com/

President

View all posts