Programming Entity Framework by Julia Lerman
In addition to Code First, EF 4.1 introduces simpler EF coding patterns with the DbContext, DbSet, ChangeTracker and Validation APIs. This second mini-book will take the reader on a tour of these new features and how to take advantage of them. These new classes and APIs let the user focus on the most common coding tasks with Entity Framework and streamlines access to patterns which are frequently used, but were previously non-intuitive and complicated to code. With the new features in hand, the reader will then see how to leverage EF 4.1 in a variety of applications - client applications, web applications, services - and architectures from drag & drop to enterprise apps with repositories, Unit of Work and automated testing.