Programming Entity Framework: Code First


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
Chapter 1 Welcome to Code First
Chapter 2 Your First Look at Code First
Chapter 3 Using Conventions and Configurations for Property Attributes
Chapter 4 Using Convention and Configuration for Relationships
Chapter 5 Using Conventions and Configurations for Database Mappings
Chapter 6 Controlling Database Location, Creation Process, and Seed Data
Chapter 7 Advanced Concepts
Chapter 8 What’s Coming Next for Code First

Book Details

  • Paperback: 192 pages
  • Publisher: O’Reilly Media (November 2011)
  • Language: English
  • ISBN-10: 1449312942
  • ISBN-13: 978-1449312947
Download [6.5 MiB]

You may also like...

Leave a Reply