Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Overview

This mini book will act as an extension to Programming Entity Framework 2nd Edition. Code First is an additional means of building a model to be used with the Entity Framework and is creating a lot of excitement in the .NET development community. The reader will begin with an overview of what Code First is, why it was created, how it fits into the Entity Framework and when to use it over the alternatives. Next the reader will gain an understanding of how Code First's built in conventions work and how to override them with configuration — whether they choose to use attribute based Data Annotations or strongly typed Fluent API configurations. The mini-book will then review the modeling possibilities of Code First, looking first at the impact of its conventions and then demonstrating how to override that behavior (and its impact on the database) first with the Annotations and then with the Fluent API. The book will also explore how Code First Database initialization works, the options it provides and how they impact your application development and database. Finally the reader will get a chance to see Code First in action in a small application. Because more complex application development with Code First will depend on an understanding of the DbContext API, which is the focus of Minibook #2, readers will see additional application scenarios with Code First in that following mini-book.

Subscriber Reviews

Average Rating: 4.777777777777778 out of 5 rating Based on 9 Ratings

"Chief Software Architect" - by SOADYP on 04-FEB-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Excellent Book. I find most of Julie Lerman's material well organised. PROS: Good coverage of how to define classes and get the result on the Database required. Lots of good detail and explanations. CONS: Needs Update for code first migrations. Perhaps with a revision for EF6.0. Would recommend for people starting CODE FIRST journey.
Report as Inappropriate

"Principal Engineer" - by stworsham on 19-JUN-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Clear, concise and easy to follow. Example code included for a variety of scenarios and techniques. Highly recommended.
Report as Inappropriate

"Great coverage of a relatively new topic" - by bclaridge on 06-JAN-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
One of the only books that specifically covers EF: Code First from cover to cover. Take's you from the basics to advanced topics at a quick pace. Highly recommended.
Report as Inappropriate

Table of Contents

 

Extras

The publisher has provided additional content related to this title.


Description
Content

Visit the catalog page for Programming Entity Framework: Code First

  • Catalog Page

Visit the errata page for Programming Entity Framework: Code First

  • Errata

Download the supplemental electronic content for Programming Entity Framework: Code First

  • Supplemental Content