Entity Framework Tutorial Basics(11):Code First

追憶似水流年發表於2016-07-07

Code First development with Entity Framework:

Entity Framework supports three different development approaches to use entity framework in your application.

  1. Code First
  2. Model First
  3. Database first

Code First:

In the Code First approach, you avoid working with visual model designer (EDMX) completely. You write your POCO classes first and then create database from these POCO classes.

Developers who follow the path of Domain-Driven Design (DDD) principles, prefer to begin by coding their domain classes first and then generating the database required to persist their data.

code-first in entity framework

Please visit Code-First Tutorials section to learn code-first from scratch.

相關文章