Sunday, 21 May 2023

Create database in efcore

 go to project root dir and run these commands 

dotnet tool install --global dotnet-ef
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet ef migrations add InitialCreate
dotnet ef database update

 

connection string will be like this 

 "ConnectionStrings": {
    "database": "server=.;database=low2high;integrated security=true;TrustServerCertificate=True"
  }

No comments:

Post a Comment

Search This Blog

Creating your first "Alexa" Skill

Index What is Alexa What is Alexa Skill? Why is it required when Alexa already equipped with voice assistant? Dev...