
Amazon Prime Free Trial
FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with FREE Delivery" below the Add to Cart button and confirm your Prime free trial.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited FREE Prime delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
-47% $13.32$13.32
Ships from: Amazon Sold by: BetAlpha
Save with Used - Very Good
$6.69$6.69
FREE delivery March 28 - April 2
Ships from: ThriftBooks-Atlanta Sold by: ThriftBooks-Atlanta

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Programming Entity Framework: Code First: Creating and Configuring Data Models from Your Classes 1st Edition
Purchase options and add-ons
Take advantage of the Code First data modeling approach in ADO.NET Entity Framework, and learn how to build and configure a model based on existing classes in your business domain. With this concise book, you’ll work hands-on with examples to learn how Code First can create an in-memory model and database by default, and how you can exert more control over the model through further configuration.
Code First provides an alternative to the database first and model first approaches to the Entity Data Model. Learn the benefits of defining your model with code, whether you’re working with an existing database or building one from scratch. If you work with Visual Studio and understand database management basics, this book is for you.
- Learn exactly what Code First does―and does not―enable you to do
- Understand how property attributes, relationships, and database mappings are inferred from your classes by Code First
- Use Data Annotations and the Fluent API to configure the Code First data model
- Perform advanced techniques, such as controlling the database schema and overriding the default model caching
This book is a continuation of author Julia Lerman’s Programming Entity Framework, widely recognized as the leading book on the topic.
- ISBN-101449312942
- ISBN-13978-1449312947
- Edition1st
- PublisherO'Reilly Media
- Publication dateJanuary 3, 2012
- LanguageEnglish
- Dimensions7 x 0.41 x 9.19 inches
- Print length190 pages
Frequently bought together

Customers who bought this item also bought
From the brand

-
Your partner in learning
-
Bestsellers
-
Software Development
-
Programming Languages
-
AI / Machine Learning
-
Data Science
-
Data, Databases and more
-
Cloud Services
-
Business
-
Finance
-
Blockchain / Cryptocurrency
-
Security
-
Cookbooks
-
Head First series
-
97 Things series
-
Lean series
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
Editorial Reviews
Review
About the Author
Julia lives in Vermont with her husband, Rich, and gigantic dog, Sampson, where she runs the Vermont.NET User Group. You can read her blog at www.thedatafarm.com/blog and follow her on Twitter at julielerman.
Rowan Miller is based in Seattle, Washington and works as a Program Manager for the ADO.Net Entity Framework team at Microsoft. Prior to moving to the US he resided in the small state of Tasmania in Australia. Rowan speaks at technical conferences and blogs at http://romiller.com. Outside of technology Rowan's passions include snowboarding, mountain biking, horse riding, rock climbing and pretty much anything else that involves being active. The primary focus of his life, however, is to follow Jesus.
Product details
- Publisher : O'Reilly Media; 1st edition (January 3, 2012)
- Language : English
- Paperback : 190 pages
- ISBN-10 : 1449312942
- ISBN-13 : 978-1449312947
- Item Weight : 11.5 ounces
- Dimensions : 7 x 0.41 x 9.19 inches
- Best Sellers Rank: #1,717,091 in Books (See Top 100 in Books)
- #350 in C# Programming (Books)
- #351 in Microsoft C & C++ Windows Programming
- #1,433 in Computer Programming Languages
- Customer Reviews:
About the authors
Julia Lerman is the leading independent authority on the Entity Framework and has been using and teaching the technology since its inception in 2006. She is the author of the highly acclaimed book, Programming Entity Framework, 1st and 2nd editions and is well known in the .NET community as a Microsoft MVP, ASPInsider, and INETA Speaker. Julia is a frequent presenter at technical conferences around the world and writes articles for many well-known technical publications including the Data Points column in MSDN Magazine. Julia tweets at @julielerman and blogs at http://thedatafarm.com/blog.
Rowan works as a Program Manager for the ADO.NET Entity Framework team at Microsoft. He speaks at technical conferences and blogs at http://romiller.com.
Rowan lives in Seattle, Washington with his wife Athalie. Prior to moving to the US he resided in the small state of Tasmania in Australia. Outside of technology Rowan's passions include snowboarding, mountain biking, horse riding, rock climbing and pretty much anything else that involves being active. The primary focus of his life, however, is to follow Jesus.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book provides a clear and concise explanation of the Entity Framework from simple to advanced topics. They appreciate the good context and thoughtful examples that cover most scenarios. Readers consider it a worthwhile purchase and investment in time. However, some customers feel the enumerations are inaccurate and missing from the book.
AI-generated from the text of customer reviews
Select to learn more
Customers find the book provides a clear explanation of the Entity Framework from simple to advanced topics. They appreciate the thoughtful examples and explanations that cover both simple and advanced topics. The book provides sufficient detail for wide-scale enterprise environments while remaining concise for casual use.
"...coding conventions, then the authors provide an excellent explanation of using Data Annotations and Fluent API to augment and enhance POCO classes...." Read more
"This is a good concise book on Entity Framework Code Fist. It is clear, but the examples are scanty and short ( too short maybe)...." Read more
"This book is clearly written and well organized. The code samples work and cover most scenarios you will typically encounter...." Read more
"...It gives you the correct way to design your database using both Fluent API and and Annotations...." Read more
Customers find the book's context and examples easy to follow. They say the code samples work and cover most scenarios you will encounter. The book provides enough information to decide how to include EF in your app and a fluent API to augment and enhance POCO classes.
"...of using Data Annotations and Fluent API to augment and enhance POCO classes...." Read more
"...Resist. The exposition is very concise and the examples are thoughtfully extended from start to finish...." Read more
"...It gives enough information to decide how to include the EF to your app (Code First or Model First)...." Read more
"good context, easy to follow." Read more
Customers find the book worthwhile and affordable.
"...EF and Code First, “Programming Entity Framework Code First” is worth the purchase and investment of time to read and try the examples." Read more
"...It is a book really worth it to have." Read more
"...is quite short but it is not a drawback... And one more thing: the price is great!" Read more
"Very good book..." Read more
Customers are unhappy with the book's enumeration accuracy. They mention there is no index and some enumerations are missing from CTP 4.1.
"Same complaint as DbContext - no index. This is a significant failing for a technical book...." Read more
"...My only real issue with the book is a lack of an index...." Read more
"...Enumerations are missing (from CTP 4.1)...." Read more
"No index in the edition that I got. Makes it very hard to use for reference...." Read more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on March 1, 2017Knowledge and the ability to use Entity Framework (EF) is a must have tool set for keeping current with programming development skills needed in the marketplace. Julia Lerman and Rowan Miller deliver in a short book on how to using EF Code First approach to using Object - Relational Mapping (ORM) for ADO.NET coding. The reader is given a tour of how to use Code First coding conventions, then the authors provide an excellent explanation of using Data Annotations and Fluent API to augment and enhance POCO classes. In addition, clear examples and explanations are provide to understand how to map One-to-Many, Many-to-Many, and One-to-Zero-or-One table relationships. Toward the end of the book, database initialization is discussed including how to seed your new tables with data. While the book is somewhat dated now, being written with the limitations of EF 4.2 version, we are given a glimpse at data migrations which has since been added to the current EF level. While many online references exist of the topic of EF and Code First, “Programming Entity Framework Code First” is worth the purchase and investment of time to read and try the examples.
- Reviewed in the United States on October 18, 2014This is a good concise book on Entity Framework Code Fist. It is clear, but the examples are scanty and short ( too short maybe).
The style is akin more to a reference book than to a tutorial on how to build a complete application.
The book states that there is a complementary book , Programming Entity Framework by the same author, which dwelves much deeper into the EF. My guess is that one should get that book as a complement for all the tasks this book doesn't cover.
- Reviewed in the United States on March 1, 2012This book is clearly written and well organized. The code samples work and cover most scenarios you will typically encounter. Since the book will lead you to experiment on your own right away, I recommend taking your time and reading this book deliberately and working with the examples. You will learn small details that will save you trial and error when you are ready to use the technology on your own.
Julia and Rowan have done a wonderful job here, and you will be tempted to "run with it". Resist. The exposition is very concise and the examples are thoughtfully extended from start to finish.
Being a little patient and letting the authors walk you through will save you time in the long run. Working through the book in order models the iterative process we go through as developers. The authors demonstrate how code first gracefully adapts as requirements change.
Jullia and Rowan are consumate teachers in this book.
*** Quick edit ***
I have both the print and Kindle edition of this book. I am very happy with the Kindle version. The images and code samples are easy to read.
- Reviewed in the United States on June 27, 2015Same complaint as DbContext - no index. This is a significant failing for a technical book. I suppose it is a testimony to the quality of the contents that it gets three stars.
- Reviewed in the United States on June 11, 2013I had previously tried to learn code first by using online examples and code that I had managed to collect. I did ok, but I had several questions. This book reminded me of why I should not learn from the web. It gives you the correct way to design your database using both Fluent API and and Annotations. From the start I was able to create each example as the book detailed. The only place that I had any trouble was with one to one relationships, and the book even stated that there would be some hangups with this. All these relationships took were a little bit of practice and I was well on my way to creating my own database using Code First. I have struggled with Code First for a while and it only took me a few weeks to get through this book and I feel like I am at the top of my game now. I would recommend this to anyone using C# development.
- Reviewed in the United States on June 20, 2012The way I usually learn a new technology is to grab a good book or two, orient myself in the technology, and "Google" everything else. The funny thing is I keep finding myself coming back to the pages of this book, the simple examples, and the clear and timely explanations of facts related to each specific topic. Although I would definitely recommend getting Ms. Lerman's big Programming Entity Framework book at the same time, this book was surprisingly complete on its own.
My only real issue with the book is a lack of an index. The table of contents is complete and serviceable, but I (and I assume others) am used to searching by keywords and it would make using it as a reference book a lot easier.
- Reviewed in the United States on October 17, 2012Great overview for Code First, but to get whole picture of Entity framework you need to get to the main book "Programming Entity Framework: Building Data Centric Apps with the ADO.NET Entity Framework". Actually would be 5 stars if included unit-testing approaches.
- Reviewed in the United States on October 15, 2015This is a great book.The book is small and light-weight but it packs a powerful punch to getting into the Code First coding style. The author did a great job with examples and making suggestions in regards to coding using Data Annotations and the Fluent API. I also have to commend her on the references to other articles on the net in regards to certain functionality. This is by far the best technical book I've ever brought. I have tons of books that goes deep into the subjects which becomes long and very drawn out; but this book is like WOW! In fact, I think I'm going to purchase the DBContext book which should be similiar. Great book and buy.
Top reviews from other countries
-
Emanuele MarussiReviewed in Italy on August 8, 2023
5.0 out of 5 stars Una guida preziosa per padroneggiare Entity Framwork
"Programming Entity Framework: Code First" è un volume fondamentale per gli sviluppatori che desiderano padroneggiare l'approccio "Code First" nell'ambito del framework di sviluppo di dati Entity Framework. Scritto da Julia Lerman e Rowan Miller, questo libro offre una guida dettagliata e approfondita su come utilizzare questa metodologia per creare e gestire modelli di dati in modo efficiente.
Uno dei punti forti del libro è la sua chiarezza nell'illustrare i concetti complessi dell'approccio "Code First". I due autori guidano i lettori attraverso ogni aspetto del processo di sviluppo, dall'installazione e la configurazione iniziale fino alla creazione di modelli di dati sofisticati. La spiegazione dettagliata, unita a esempi pratici e scenari reali, rende più agevole l'apprendimento e l'applicazione di questa metodologia.
La struttura del libro è ben organizzata, con una progressione graduale da concetti fondamentali a concetti più avanzati. Gli autori affrontano argomenti come la definizione di classi di entità, la gestione delle relazioni, la creazione di query e la migrazione dei dati con un approccio approfondito, consentendo ai lettori di acquisire una comprensione solida e completa del processo.
Gli esempi di codice sono particolarmente preziosi. I lettori possono vedere direttamente come applicare i concetti teorici nella pratica, affrontando sfide comuni e realizzando modelli di dati funzionali. Questo approccio pratico è utile sia per gli sviluppatori principianti che per quelli più esperti che desiderano adottare l'approccio "Code First".
Un altro punto forte del libro è la sua attualità. Gli autori tengono conto delle ultime versioni del framework Entity Framework e delle best practice aggiornate, garantendo che i lettori abbiano informazioni aggiornate e pertinenti.
Tuttavia, a causa della complessità dell'argomento, alcuni lettori potrebbero trovare alcune sezioni particolarmente dense. Questo libro è particolarmente utile per coloro che hanno già una conoscenza di base del framework Entity Framework e della programmazione C#.
In sintesi, "Programming Entity Framework: Code First" è una risorsa preziosa per gli sviluppatori che vogliono padroneggiare l'approccio "Code First" nell'ambito del framework di sviluppo dati Entity Framework. Con spiegazioni chiare, esempi di codice pertinenti e un approccio graduale, il libro offre una guida completa per creare modelli di dati sofisticati in modo efficiente e funzionale. Se sei un programmatore interessato a ottimizzare il tuo sviluppo dati con Entity Framework, questo libro è un alleato indispensabile nella tua libreria tecnica.
- PratikReviewed in India on June 1, 2018
5.0 out of 5 stars Very nice book and in depth understanding for Entity Framework Code ...
Very nice book and in depth understanding for Entity Framework Code first. All Details are explained by using both Data Annotation and Fluent API. Everything i.e. Relation between tables(one to one, one to many, many to many), table splitting etc are discussed properly. Very good book if you want to have power on Entity Framework Code First.
- Matt AllenReviewed in Canada on December 15, 2016
5.0 out of 5 stars Fantastic book to make you learn the bells and whistles of CodeFirst
Thanks to Julia and Rowan for having produced such a great work. This book was written before Julia dived deep into Domain Drive Design (DDD). One can understand why she has focused on DDD, after having written this book. CodeFirst is a natural path to DDD. Anyone willing to write professional enterprise applications shall first master EF CodeFirst before starting with DDD. Those two technologies go hand in hand. With the examples and easy to understand explanations, this book is a must for modern day developers.
- L. A. PuplettReviewed in the United Kingdom on January 16, 2015
5.0 out of 5 stars Behold: A short programming book! So glad I bought it.
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.
-
MatzeReviewed in Germany on August 12, 2013
5.0 out of 5 stars It's a Julie Lerman Book
Julie Lerman kann man durchaus als Autorität in Sachen Entity Framework betrachten. Wer Julie Lerman's Beiträge kennt, wird Ihren Stil in diesem Buch sehr schnell wieder finden. Das Thema Entity Framework im Code First Ansatz wird ausführlich (wenn auch nicht erschöpfend) anhand von realistischen Beispielen Stück für Stück durchgearbeitet und bietet eine solide Grundlage um eigene Gehversuche zu wagen. Alles in allem ein gut gelungenes Buch für EF Einsteiger und als Nachschlagewerk für Fortgeschrittene.