.net core data migration

Steps: Click Tools = "Nuget Package Manager = "Package Manager Console = "Select the project library where the data is stored = "Then enter the command in the console

#数据迁移命令
Add-Migration Name      (name是数据迁移的名字)
#数据更新命令
Update-Database

=》Migration succeeded

="Then use the command Update to take effect

Note: If no error is reported, it is successful

Guess you like

Origin blog.csdn.net/qq_57963272/article/details/129707857