Friday, August 14, 2009

Teched 2009: Entity Framework 4

I know what you are thinking, and NO - we have not missed version 2 and 3 of the Entity Framework (even though sometimes we wish we had). They have just tried to remove the confusion of talking of .Net 4 and EF2 (although I think more people are confused now).

As with the previous post - some good news. They have completely rewritten EF4. Yes, they have built EF4 on top of T4. For those people that have no idea what I am talking about - T4 is a code generation template provided by Microsoft that has been available from the days of Visual Studio 2005.

The most shocking news is still to come however. The data guys from Microsoft have been listening to all those angry developers (like me and all my colleagues) and have now support for POCO classes (how revolutionary). We will now be able to design a model without being tied to the database (seems simple I know - sarcasm runs in my blood)!!!! Perhaps I will try it out again but I am still so scarred from my previous experiences of EF. We shall see.

They have also included Model First development. This will allow the user to build the model first and then generate a database schema from this. Once again, I am not sure I will use this. It is very rare that we deal with solutions where the domain model should have 1-1 relationship with the database. This becomes just a basic and overrated CRUD system.

EF will still have a long way to go in my opinion to compete against other products like NHibernate.

No comments:

Post a Comment