#16 Net CoreApi Scoffold DbContext

Опубликовано: 21 Февраль 2026
на канале: Srinivas Mateti
35
3

This is 16th Video in the series
1) In this video trying to fix the issue we faced in previous video
2) Finding a better way to include EF in this video
3) Explained Scoffolding command to create db context and models from SQL server
4) Scaffold-Dbcontext "Data Source=SERVERNAME;Initial Catalog=DBNAME;Integrated Security=true;TrustServerCertificate=True" Microsft.EntityFrameworkCore.SqlServer -OutputDir Models
5) Install below packages
dotnet add package Microsft.EntityFrameworkCore.SqlServer --version 9.0.0-preview.7.24405.3
NuGet\Install-Package Microsoft.EntityFrameworkCore.Design -Version 9.0.0-preview.7.24405.3
NuGet\Install-Package Microsoft.EntityFrameworkCore.Tools -Version 9.0.0-preview.7.24405.3
6) Finally end up with Microsft.EntityFrameworkCore.SqlServer , will resolve this issue in next video