×
Search results provided by Azure Search - read how I built it in this post.
Max Melcher

2 minute read

Session by Glenn Condron

Okay, this room is packed – there is some serious interest in this topic.

2013-06-25T15-12-21_0

Here are my notes from the session.

Glenn started with question how many used Entity Framework by now – almost everyone in the audience. Code first? A lot. Migrations? Fewer. Nuget – 50%. Most of the time he hears this question:

What is this nugget thing?

If you don’t get the joke – follow this link:

Now back to the session: Entity Framework is Open Source and accepts contributions. Open Source is still an obstacle for certain enterprises – even though the code review process is the same as for internal changes. And: you get the same support and quality.

There are 3 workflows for Developers: Model First (you create the database based on a model, Database First (the database exists upfront), Code First (create database or map to existing database with code).

What’s new?

Async for query and save: Don’t need the result right now? Do it async.

Connection resiliency – in other words: reconnect

Code-based configuration

Database command interception/logging – I missed the logging option in EF5.

Performance – always good.

Okay, then Glenn increased his pace – there are many more improvements in the new version. Check the website.

Migrations

Migrations for Code First creates a class file with instructions how to handle migration/upgrade scenarios. You can even export the migration script to SQL. The migration even works for different versions so you can update to the latest version in one jump.

Stored Procedure

Stored procedures have been added to EF6 – some people are very happy in the audience. Glenn created a quite extensive demo in a very short time – I got the idea and why its useful.

2013-06-25T16-01-00_0

Async

If used appropriately it can improve your performance and salability – or kill your servers. Important: You cant use two async on the same context at the same time! If you think about it, it makes sense. If you want to use them look out for the “Async” methods.

My evaluation

Glenn knows what he is talking about – great overview about the changes and some cool demos – and he’s even entertaining. I like the presentation style!

comments powered by Disqus