代码改变世界

Entity Framework Tutorial Basics(11):Code First

2016-07-07 09:56  追忆似水流年  阅读(149)  评论(0编辑  收藏  举报

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.