on 20 May 2012
I have purchased and read all the books in O'Reillys' "Programming Entity Framework" series, and Code First is a key member of an excellent series. After Microsoft shipped the first version of code-first I was keen to learn as much as possible about this very exciting project aimed at bringing a very code-centric approach to data modelling. Initially I used the ADO.NET team blog as my principle source of information and found that a good way to learn the basics but getting more information was not easy. I was pleased to see that Julia Lerman has been joined by Rowan Miller (Program Manager for the ADO.NET Entity Framework team at Microsoft) in writing this title. This book provides a tour of all aspects of code-first including very clear explanations of the conventions used by code-first and how to "tune" them for advanced mapping scenarios, this was something I had previously struggled to understand. I particularly liked the attention paid to achieving equivalent mapping using both data attributes and the fluent API. The only thing I didn't like about this book (which is why I didn't give 5/5) was that I felt it, and the sister title "Programming Entity Framework, DbContext" could have been easily combined into a single volume. I don't think this book alone would provide enough information about using code-first. That said I would not hesitate to recommend both titles and if you are totally new to Entity Framework but want to get started quickly then do yourself a favour and buy this and the DbContext book.
on 31 July 2012
The book is very good at describing how Code First works, conventions, Fluent Api etc. Unfortunately no information on migrations as the book was released before migrations were added to EF. It also lacks an index which is disappointing. Why any publisher will release a book with an index I have no idea. Other than that it is worth buying.
on 16 January 2015
I bought this a couple of years ago along with Julia's big book on EF and I never needed it since I went model first. Now I'm back on a greenfield project and I'm going code-first and this book is short but comprehensive.
Julia's style is quite waffly, which was a criticism of her big book, but also a problem in general with programming books. This one is less so, though still room for improvement on the signal-to-noise ratio.