I'm newer to EF core and I followed an Asp.net core tutorial on Youtube (Presented in French )
CodePudding user response:
first create a database manually.
after that create a dbContext and connect it to your database by using this link and this one then add your models context inside it
now go to package manager console inside visual studio
write this command enable-migrations
then write this command to add a migration class add-migration {migrationName}
, after creating migration write this command to update your migration code inside database
by using this command update-database
for a complete documentation visit microsoft tutorial