Saturday, 10 February 2024

Project Template for quickly getting started of .net core web app

1. Create new project in Visual studio 2022

2. choose 'individual accounts' for authentication

3. Once project created, change 'DefaultConnection' in app.config. So that user accounts data will be safely stored in our application database. A separate database need not to be maintained.

4. Now use 'database first' approach in entity framework. Refer to the article in our blog.


Database first - dotnet core

 1. create new .net core project in vs 2022

2. add nuget packages
    Microsoft.EntityFrameworkCore
    Microsoft.EntityFrameworkCore.Design
    Microsoft.EntityFrameworkCore.SqlServer
    Microsoft.EntityFrameworkCore.Tools

3. add new folder 'Models'

4. open package manager console

5. run command 

Scaffold-DbContext "Data Source=10.11.11.19;Initial Catalog=FM_Sharp_Practice;user id=itf-application;password=4rfvgy7;TrustServerCertificate=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -f


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...