Skip to content
0:00 / 0:00

#dapper#csharp#orm

C# Data Access: Complex Objects with Dapper

IAmTimCorey

441K subscribers • 15 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Tim Corey, software developer and educator

Intermediate. Assumes working knowledge.

39K views3 years ago1 recommendation

Databases and dataProgramming languagesC# and .NETSQL

Tim Corey explains how to map flat SQL query results into complex nested objects using Dapper in C#.

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: DevForge.com Source Code: DevForge.com/downloads/?code=DapperComplexObjects Mailing List: signup.iamtimcorey.com/

Why it's here

1 person recommends this

What people say. Recommended as a helpful tutorial for getting started with Dapper without Entity Framework.

u/UnremarkabklyUselessin r/dotnet • Recommends

On “.NET without Entity Framework”

There are a few tutorials on YouTube about getting started with Dapper. You could sample them and follow the one you like. link to this video link to this video link to this video link to this video link to this video link to this video