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. The Validation API that comes with DbContext leverages the existing .NET 4 IValidatableObject and ValidationAttributes as well as providing additional validation features. You will learn the ins and outs of getting the most from server side validation from the DbContext.
Julie Lerman is a Microsoft MVP, .NET mentor and consultant who lives in the hills of Vermont. You can find Julie presenting on data access and other Microsoft .NET topics at user groups and conferences around the world. Julie blogs at thedatafarm.com/blog, is the author of the highly acclaimed "Programming Entity Framework (with a second edition released in August 2010) and authors the MSDN Magazine Data Points column. Follow Julie on twitter at julielerman.
Stejně jak první edice knihy o Entity Frameworku v1 je i tento dodatek k druhému vydání výše zmíněné knihy plný popisů a jednoduchých příkladů použití API v EF Code First, ale bohužel autorka možná dnes zná dobře API EF, ale stále na mnoha místech prosvítá, že autorka nezná dokonale C# ani některé idiomy kolem vícevláknových aplikací apod. a také není schopna poskytnout ucelený návod, jak vytvořit a hlavně rozvíjet složitější aplikaci používající EF. Pro první seznámení dobré, ale pokud EF (Code First) znáte, vytušíte na mnoha místech, že autorka žádnou zkušenost s reálným projektem na EF nemá, protože by nebyla tak nadšená, jak vše v EF skvěle funguje a musela by napsat, které oblasti jsou v EF řešeny mizerně a třeba u konfigurace (EntityConfiguration a ComplexTypeconfiguration) alespoň zmínit, že je potřeba si práci usnadnit napsáním bázových tříd se společnou konfigurací a také, že to vychvalované fluentní API bez možnosti napsat vlastní konvence pro mapování někdy vede k ekvivalentu koktání a ráčkování v kódu aplikace.
Greate introduction to code first programming with Entity Framaework. It's logoically layed out and the writing clearly shows the depth of knowledge of the author.