cSharp learning course

source - https://docs.microsoft.com/pl-pl/ef/core/managing-schemas/migrations/index

If any trouble with powershell (if needed upgrade)

with tutorial: https://docs.microsoft.com/pl-pl/aspnet/core/tutorials/razor-pages/model?view=aspnetcore-2.2&tabs=visual-studio

 

Commands in PMC does not work

Add-Migration Initial

Update-Database

 

Use CMD.exe

C:\Users\User_name\source\repos\RazorPagesMovie\RazorPagesMovie>dotnet ef migrations add init

*init: if you use command for the 2nd time name init2, init3...initN

C:\Users\User_name\source\repos\RazorPagesMovie\RazorPagesMovie>dotnet ef database update



Dodaj komentarz






Dodaj

© 2013-2024 PRV.pl
Strona została stworzona kreatorem stron w serwisie PRV.pl