Programming Entity Framework: Code First
Creating and Configuring Data Models from Your Classes
Publisher: O'Reilly Media
Final Release Date: November 2011
Pages: 194

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.

Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyProgramming Entity Framework: Code First
 
5.0

(based on 2 reviews)

Ratings Distribution

  • 5 Stars

     

    (2)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

Reviewed by 2 customers

Sort by

Displaying reviews 1-2

Back to top

(3 of 3 customers found this review helpful)

 
5.0

A Must-Have for EF Code First

By JeffCren

from Richmond, VA

About Me Developer

Verified Reviewer

Pros

  • Easy to understand
  • Helpful examples
  • Well-written

Cons

    Best Uses

    • Expert
    • Intermediate
    • Novice
    • Student

    Comments about oreilly Programming Entity Framework: Code First:

    I have worked with Entity Framework 4 a little, mostly on side projects and working through various tutorials on the web, but they typically don't get to the deep dive level. Julie Lerman's book does just that. After reading this book and working through some of the examples, I feel comfortable enough with Entity Framework 4 to use it on a production project.

    I was especially pleased to learn more about customizing the database that Entity Framework creates (location, name, etc.) and seeding the datatbase with data.

    I have the Kindle edition of the book, but I've seen the print edition and it almost doesn't seem big enough for all the content it contains. I found it a great read from cover to cover (so to speak), and it will also serve as a great reference in the future for some of the more complex topics.

    (4 of 4 customers found this review helpful)

     
    5.0

    In 2 days, learned all that I needed

    By wrl

    from Kansas

    Verified Reviewer

    Pros

    • Accurate
    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Expert
      • Intermediate

      Comments about oreilly Programming Entity Framework: Code First:

      This book and the 2nd Edition of Programming Entity Framework by this author gave me all the foundation I needed to begin using EF in a very smart and efficient manner in real production projects. Code First taught me how to keep my POCO classes completely free of data annotations and use the powerful fluent API to configure the all the mapping and attributes needed to match my classes to the database table by using configuration classes in code. This is the central reason I chose to use Code First.

      The foundation provided in the previous book made learning Code First easy. I learned what choice to make from the possibilities and what the benefit and compromise of that choice were.

      Displaying reviews 1-2

      Back to top

       
      Buy 2 Get 1 Free Free Shipping Guarantee
      Buying Options
      Immediate Access - Go Digital what's this?
      Ebook: $20.99
      Formats:  DAISY, ePub, Mobi, PDF
      Print & Ebook: $27.49
      Print: $24.99