To work with Entity Framework Core 6.0 using the Code First approach and an SQL Server database, install the following NuGet packages:
- Microsoft.EntityFrameworkCore: The main EF Core package.
- Microsoft.EntityFrameworkCore.SqlServer: The database provider for Microsoft SQL Server.
- Microsoft.EntityFrameworkCore.Design: Provides design-time services for EF Core.
- Microsoft.EntityFrameworkCore.Tools: Additional tools for EF Core, like migrations, are provided.
Open the Package Manager Console and install the following packages:
Install-Package Microsoft.EntityFrameworkCore -Version 7.0.9
Install-Package Microsoft.EntityFrameworkCore.SqlServer -Version 7.0.9
Install-Package Microsoft.EntityFrameworkCore.Design -Version 7.0.9
Install-Package Microsoft.EntityFrameworkCore.Tools -Version 7.0.9