Books & Videos

Table of Contents

  1. Chapter 1 Welcome to Code First

    1. Modeling with EF Before Code First

    2. Inception of Code First

    3. Getting Code First to Developers in Between .NET Releases

    4. Writing the Code…First

    5. Managing Objects with DbContext

    6. Using the Data Layer and Domain Classes

    7. Getting from Classes to a Database

    8. Working with Configuration

    9. Creating or Pointing to a Database

    10. What Code First Does Not Support

    11. Learning from This Book

  2. Chapter 2 Your First Look at Code First

    1. Introducing EF to the Domain Classes

    2. Putting the Pieces Together in an Example

    3. Overriding Convention with Configurations

    4. Understanding How Model Changes Impact Database Initialization

    5. Configuring Code First with the Fluent API

    6. Summary

  3. Chapter 3 Using Conventions and Configurations for Property Attributes

    1. Working with Property Attributes in Code First

    2. Mapping Keys

    3. Configuring Database-Generated Properties

    4. Configuring TimeStamp/RowVersion Fields for Optimistic Concurrency

    5. Configuring Non-Timestamp Fields for Concurrency

    6. Mapping to Non-Unicode Database Types

    7. Affecting the Precision and Scale of Decimals

    8. Working with Complex Types in Code First

    9. Configuring Properties of Complex Types

    10. Summary

  4. Chapter 4 Using Convention and Configuration for Relationships

    1. Working with Multiplicity

    2. Working with Foreign Keys

    3. Working with Inverse Navigation Properties

    4. Working with Cascade Delete

    5. Exploring Many-to-Many Relationships

    6. Working with Relationships that Have Unidirectional Navigation

    7. Working with One-to-One Relationships

    8. Summary

  5. Chapter 5 Using Conventions and Configurations for Database Mappings

    1. Mapping Class Name to Database Table and Schema Name

    2. Mapping Property Names to Database Columns

    3. Allowing Multiple Entities to Map to a Single Table: aka Table Splitting

    4. Mapping a Single Entity Across Multiple Tables

    5. Controlling Which Types Get Mapped to the Database

    6. Understanding Property Mapping and Accessibility

    7. Preventing Properties from Being Included in the Model

    8. Mapping Inheritance Hierarchies

    9. Working with Abstract Base Classes

    10. Mapping Relationships

    11. Summary

  6. Chapter 6 Controlling Database Location, Creation Process, and Seed Data

    1. Controlling the Database Location

    2. Working with Database Initialization

    3. Using Database Initializers to Seed Data

    4. Using Database Initialization to Further Affect Database Schema

    5. Summary

  7. Chapter 7 Advanced Concepts

    1. Mapping to Nontable Database Objects

    2. Removing Conventions

    3. Taking Control of Model Caching

    4. Working with the EdmMetadata Table

    5. Using Code First with ObjectContext

    6. Summary

  8. Chapter 8 What’s Coming Next for Code First

    1. Code First Migrations

    2. Entity Framework Power Tools