-
Book Overview & Buying
-
Table Of Contents
Building Modern SaaS Applications with C# and .NET
By :
Upgrading a database with Entity Framework involves making changes to the database schema and data to reflect changes in an application. This can include adding new tables or columns, modifying existing tables or columns, and migrating data from one format to another.
There are several approaches that you can take when upgrading a database with Entity Framework. One approach is to use the DbMigrations class to automatically generate and execute the necessary SQL commands to update the database schema. This can be convenient, as it allows you to make changes to the database using a high-level API, rather than having to write raw SQL commands. However, it can also be less flexible than some other approaches, as it relies on Entity Framework to generate the SQL commands, and that may not always produce optimal results. This is the approach that we will take in this chapter.
It is worth being aware of a popular alternative approach, which is to use Entity Framework...