you need to run migration commands. .net cli : install the ef tool: dotnet tool install --global dotnet-ef update database: dotnet ef database update visual studio: open package manager console and run this command update-database ps: make sure to update connection string according to your database
@dsbbros9928 Please, do not create them manually. In this way you may face problems. Ef core comes with code first approach. Learn how to add them through migration commands.
Nice tutorial thanks.
Did everything as in video. I get "The field is required" on every string column, even tho I added something. Please help!
i dont know, every time when i try to upload (POST) my app stop running on visual studio. why?
Plz sir i need how database create
you need to run migration commands.
.net cli :
install the ef tool: dotnet tool install --global dotnet-ef
update database: dotnet ef database update
visual studio:
open package manager console and run this command
update-database
ps: make sure to update connection string according to your database
@@ravindradevrani thx sir i create manually table then bug fixed
@@ravindradevrani can i contact individually sir
@dsbbros9928 Please, do not create them manually. In this way you may face problems. Ef core comes with code first approach. Learn how to add them through migration commands.
@@dsbbros9928 sorry. It is not possible
thanks sir