Entity Framework 6.1, (Part 6 of 6): Code-First Dev

Entity Framework 6.1, (Part 6 of 6): Code-First Dev

Updated Feb 04, 2020

This course will start by covering how code-first works by default, which will probably work for most applications early in their development cycle. But when you’re ready to deploy the application to a production server, or need more flexibility in how Entity Framework creates a database. You’ll see how to create a code-first model and create a database from it, and see an application that makes use of it to maintain data in the database. You’ll also learn how to customize the database using both data annotations and the DBModelBuilder API, which lets you write code instead of use data annotations. Last you’ll see how code migrations is a newer feature of code first that goes beyond just deleting and recreating the database when the model changes.

Lesson 1:

  • Domain-Centric Modeling
  • Using Code-First
  • Creating and Using a Model
  • Demo: Ordering Model
  • Demo: Address & Order
  • Demo: Navigation Properties
  • Demo: Ordering Context
  • Demo: Connection.

Lesson 2:

  • Demo: Scaffold
  • Demo: Add View
  • Demo: Create
  • Demo: Add Customer.

Lesson 3:

  • Demo: Run App
  • Demo: Create Database
  • Demo: Explore Data.

Lesson 4:

  • Demo: Details
  • Demo: Update Customer
  • Demo: Add View
  • Demo: Delete User
  • Demo: Run Application.

Lesson 5:

  • Demo: Change the Model
  • Changing the Model
  • Demo: Database Re-creation.

Lesson 6:

  • Demo: Ordering Initializer
  • Demo: Ordering Initializer Cont
  • Demo: Change the Model.

Lesson 7:

  • Customizing the Database
  • Conventions
  • Data Annotations
  • Demo: Primary Keys
  • Demo: Annotations
  • Demo: Override Names
  • Demo: Using Annotations.

Lesson 8:

  • Demo: Remove Convention
  • Config Properties & Entities
  • Demo: Property Method
  • Demo: Change Column Name.

Lesson 9:

  • Code-First Migrations
  • Migration Implementation
  • Demo: Package Manager
  • Demo: Migration Object
  • Demo: Automatic Migration
  • Demo: Change Initialization
  • Demo: Database Schema
  • Demo: Data Loss
  • Demo: Accept Data Loss
  • Demo: Add Model Class.