11 internautes sur 12 ont trouvé ce commentaire utile
- Publié sur Amazon.com
I purchased the ebook version of this book directly from the publisher. Since it was the first book available that covered EF 5 features, and was also a step by step guide, I thought it would be useful to update and augment my knowledge of Entity Framework. I read and worked through the entire book.
Overall, the author proceeds in a very step-by-step fashion (as the title indicates), and the only item that may be difficult for a beginner is knowing where SQL Server Express stores the .mdf and .ldf files (several times this is a required step, but the information is not provided).
The author uses a simple Windows Forms application to walk through all of the book's examples. Also, Database First and Code First are given brief treatment; Model First is used for almost all of the examples and topics covered.
The main EF 5 features, such as using Table-Valued Functions, enumerations, and model designer features are covered in some detail, but briefly. Both LINQ and Entity SQL are covered at length, mainly listing many of the possible usages; the samples for both are fairly limited. The book does discuss important topics such as concurrency, and also has interesting material found in the last section of the book, on working with POCO entities (from a Model First perspective), inheritance (but not differentiating the types of inheritance that EF offers), and using partial classes to customize basic methods like "SaveChanges()", among other things.
I won't provide a chapter-by-chapter summary, as the table of contents is fairly self-explanatory. I will say that for many chapters, the coverage of the topic is again brief.
* The book is not long, so you can read and work through the samples in a short amount of time.
* The author does discuss some important topics, such as perceived performance vs. actual performance.
* There are very few typos or mistakes, with only minor errata.
* The author does respond to questions.
* The highlights of EF 5 are covered, albeit in a Model First approach.
* The book does not cover any platforms other than Windows Forms; using EF with MVC, Web Forms, WCF, or any other platform is not discussed. I don't think a reader of this book could effectively use Entity Framework in a disconnected scenario, or even a web-based scenario.
* The book gives little coverage of Code First (and Database First); I would have traded in the chapter on Entity SQL for at least an introduction to Code First with migrations, as this is a popular option for developers, even if nothing has really changed from EF 4.3 to EF 5 in this regard.
* All of the models in the book use two entities (with the exception of the example on inheritance, which has five); a richer model would be more representative of a "real database".
I would recommend the book as a starting point for a junior or mid-level developer who has never worked with Entity Framework. That said, I would not let this be your last book (or tutorial) on Entity Framework by any means.
I highly recommend the Entity Framework books written by Julie Lerman, along with her courses on Pluralsight. Many other courses on Pluralsight also showcase Entity Framework with repository and unit of work patterns that are briefly touched on in this book.
Finally, I highly recommend Itzik Ben-Gan's book on Microsoft SQL Server 2012 T-SQL Fundamentals, if you are working with SQL Server. In general, I think that it is a good ideas for developers to understand SQL and the RDBMS itself as much as possible. I think this enables better usage of Entity Framework and better decision-making capabilities when running into its limitations.
If all Entity Framework developers were using Model First, or if the title indicated Model First, I would probably have gone with four stars. I waffled on the exact star rating because the author did not do a poor job. I simply think that covering (or discussing) platforms beyond Windows Forms, and also additional coverage of Code First was warranted, so I give this three stars.