Wednesday 

Room 7 

15:00 - 16:00 

(UTC+02

Talk (60 min)

Stop using Entity Framework as a DTO provider!

Entity Framework is a great tool to retrieve your data from the database. However, it is also a bit complicated, and requires that you read a bit more than just the "Getting Started with EF" page. Unfortunately, this seems to be what most developers do.

Database
.NET

At least I think that is why I keep seeing people using it to replicating the database structure in their code with DTO:s. This is not the way it was intended to be used. It was intended to persist and retrieve data for you C# object. Not just DTO:s.

And if one more person tells me "we used a micro-ORM for this project, since it does the same thing as EF but without the complexity", I will blow a gasket!

Why not join me, Chris Klug, for a look at how we can do better? In this talk, I will show you how we can use proper OOP and still use EF to persist and retrieve our objects.

Chris Klug

Chris Klug has been building software professionally since sometime around 2000, back when .NET was new, CSS was a suggestion, and Roy Fielding’s REST paper had just been published. Since then he has written code for everything from model agencies to online sports betting to professional sail racing, because staying in one industry sounded far too boring.

He has been a Microsoft MVP for something like 15 years (depending on when he last updated this abstract), which either means he knows a thing or two or that he just talks a lot. Possibly both, but we all know the latter is a given. These days he works at Active Solution in Stockholm, helping clients solve problems and build better systems.

When he is not writing code, Chris is usually geeking out on some form of extreme sport like skydiving, kitesurfing, snowboarding, mountain biking, or wing foiling. He loves learning new things and spends way too much time thinking about weird stuff most people never even notice.