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

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
主站蜘蛛池模板: 长治市| 南溪县| 扎囊县| 桐梓县| 景谷| 都昌县| 黑水县| 台中县| 克东县| 襄樊市| 化州市| 石屏县| 潮州市| 诸城市| 京山县| 龙江县| 土默特左旗| 芦山县| 五指山市| 永春县| 闵行区| 晋州市| 鹿邑县| 徐汇区| 班玛县| 云龙县| 上饶县| 化隆| 韶山市| 乌兰浩特市| 江达县| 平舆县| 紫阳县| 建宁县| 广州市| 道真| 桂林市| 金乡县| 哈密市| 玉环县| 大邑县|