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

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
主站蜘蛛池模板: 原阳县| 互助| 建阳市| 乃东县| 洛川县| 江山市| 南宁市| 玉环县| 防城港市| 宁陵县| 邵武市| 萍乡市| 玛曲县| 法库县| 安阳市| 罗甸县| 小金县| 海盐县| 眉山市| 洪洞县| 庆云县| 麻江县| 新巴尔虎左旗| 柞水县| 星子县| 响水县| 招远市| 周口市| 惠安县| 郎溪县| 铜陵市| 永春县| 墨脱县| 全州县| 胶南市| 都安| 吉隆县| 永兴县| 绥滨县| 北川| 浦江县|