官术网_书友最值得收藏!

The Other Way Around – Database First Approach

In Chapter 1, Kickstart - Introduction to Entity Framework Core, we were exposed to the Entity Framework (EF) Code-First approach, which might not be useful in all scenarios. We need a provision to reverse engineer existing databases using EF Core, which guides us in performing migrations and helps us in retaining model changes that won't be lost during migrations.

When EF was first released, it supported only the database-first approach, which means we could use the framework only on the existing database. As opposed to the Code-First approach discussed in the previous chapter, the database-first approach will be widely used while we decide to use EF in the existing system.

The topics we will cover here are:

  • Preparing the database
  • Creating a new project
  • Installing Entity Framework
  • Reverse engineering the database
  • Registering context in services (.Net Core DI)
  • Performing CRUD operations
主站蜘蛛池模板: 苏尼特右旗| 台前县| 商水县| 敦化市| 东宁县| 河池市| 什邡市| 博兴县| 鹤壁市| 东阿县| 饶阳县| 林芝县| 克拉玛依市| 腾冲县| 昭平县| 东辽县| 论坛| 浪卡子县| 马山县| 台山市| 定兴县| 嘉禾县| 陆丰市| 宁安市| 新田县| 蒙山县| 长宁县| 大宁县| 汕尾市| 延长县| 江阴市| 封开县| 曲麻莱县| 宝山区| 崇文区| 高碑店市| 塘沽区| 贡山| 溧水县| 沙河市| 朔州市|