Add content for Code First Migrations (#3080)

* Update 101-codefirst-migrations.md

* Update content/roadmaps/116-aspnet-core/content/104-orm/100-entity-framework-core/101-codefirst-migrations.md

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
pull/3077/head^2
pfemi26 2 years ago committed by GitHub
parent daec505876
commit b176eb3108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      content/roadmaps/116-aspnet-core/content/104-orm/100-entity-framework-core/101-codefirst-migrations.md

@ -1 +1,9 @@
# Codefirst migrations
# Code First Migrations
Code First Migrations is a feature of Entity Framework that enables you to change the model classes in your application and then propagate those changes to the database. When you use Code First Migrations, Entity Framework generates the necessary SQL commands to update the database schema to match the model classes.
To use Code First Migrations, you need to enable it in your Entity Framework application. This can be done by adding a reference to the Entity Framework Migrations NuGet package, and then enabling Migrations in your application.
Once Migrations is enabled, you can use the Package Manager Console to add a new migration to your application. This will generate a class that contains the necessary SQL commands to update the database schema. You can then use the Update-Database command to apply the migration to the database.
- [What is a Code First Migration?](https://www.entityframeworktutorial.net/code-first/what-is-code-first.aspx)

Loading…
Cancel
Save