This video practically demonstrates the following:
a. How to install EF tools on Apple Silicon.
b. Use the tools to generate the DBContext classes and Model Classes through command.
c. Understand how to use the Entity Framework Core tools within Console Applications
Commands:
Install EF Tools
dotnet tool install --global dotnet-ef
Update the EF Tools
dotnet tool update --global dotnet-ef
We need to install the following packages:
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
dotnet add package Microsoft.EntityFrameworkCore.Tools
dotnet add package Microsoft.EntityFrameworkCore.Design
Scaffolding command
dotnet ef dbcontext scaffold "Server=localhost; Initial Catalog=yourdbname; user=sa;Password=yourpassword;TrustServerCertificate=True;" Microsoft.EntityFrameworkCore.SqlServer -o Models
#entityframework #entityframeworkcore #sqlserver #docker #programming #applesilicon #containers #eftools
Watch video NET on MAC - 4 Working with EF Entity Framework (Database First) on Apple Silicon online without registration, duration hours minute second in high quality. This video was added by user dhandrohit 05 December 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 781 once and liked it 13 people.