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

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
主站蜘蛛池模板: 迁西县| 乌拉特中旗| 永和县| 嘉祥县| 昌邑市| 嵊泗县| 西乌珠穆沁旗| 甘肃省| 镇康县| 崇左市| 合肥市| 额济纳旗| 黄龙县| 天台县| 富民县| 成武县| 娄烦县| 丰县| 桃园市| 高邑县| 新和县| 海盐县| 东丽区| 西安市| 九江县| 井研县| 潮州市| 新田县| 重庆市| 策勒县| 江华| 左云县| 长治市| 怀柔区| 卓资县| 和龙市| 临夏县| 舒城县| 南丰县| 灯塔市| 柯坪县|