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

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
主站蜘蛛池模板: 龙门县| 保亭| 巩义市| 全州县| 北宁市| 三台县| 芮城县| 莱州市| 广西| 东乌珠穆沁旗| 米脂县| 富裕县| 宁乡县| 富平县| 遵义县| 五寨县| 友谊县| 东辽县| 永安市| 大洼县| 兴城市| 乌兰浩特市| 衢州市| 汕尾市| 霍邱县| 靖宇县| 延安市| 常州市| 逊克县| 灌南县| 亚东县| 西充县| 长泰县| 贵州省| 苍南县| 铜川市| 扬州市| 应城市| 金昌市| 黑龙江省| 基隆市|