O'Reilly logo

Fluent Entity Framework by Rebecca M. Riordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Moving house

Image

Everything we’ve done so far works exactly the same whether you’re using Entity Framework 4 and .NET Framework 4.0 or Entity Framework 5 and .NET Framework 4.5. Data annotations are an exception—they’ve moved.

In versions of Entity Framework prior to 5, some data annotations were declared in the System.ComponentModel.DataAnnotations namespace (which is part of the .NET class library), but actually in the EntityFramework assembly. That could be a nuisance, because it required a reference to the Entity Framework in your otherwise pristine, persistence-ignorant code files.

In the .NET Framework 4.5, those annotations are now included ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required