/entity-framework-core-codefirst-db-migration

this explains how we can create database based on code first approach. I have created models at first then using migration commands created the database. please have a look at youtube video 'codingfriday entityframework core run migration and create database with practical example' ' if you want to do it manually here are the steps 1st part install-package Microsoft.EntityFrameworkCore.SqlServer install-package Microsoft.EntityFrameworkCore.Design Create Models Create DbContext provide connectionstring add startup configuration demo with running the application ------------------------------------------------------------------------ 2nd part remove the database and startup entry enable-migration add-migration developerdbmigration update-database demo ------------------------------------------------------------------------- remove data Annotations update Developerdbcontext create DeveloperEntityConfiguration delete migration add-migration developerdbmigration update-database demo

Primary LanguageC#

Stargazers