.NET EFCore | Scaffold SQL Database with DB First migration in Web API using EntityFrameworkCore

preview_player
Показать описание
Thanks so much for watching 🙌🏾 LIKE 👍, SUBSCRIBE & turn on Notifications 🔔 to know when I upload new videos EVERYDAY!

/*You can buy a coffee for me*/ ☕️

Table of Contents:
00:00:00 | Introduction to Scaffold Db First Migration.
00:02:36 | Creating Web API project.
00:03:09 | Installing EFCore, EFCore.SqlServer, EFCore.Tools NuGet packages.
00:04:46 | Performing Scaffolding with Db First Migration.
00:12:56 | Creating API Controller to access the database.

Code: Scaffold-DbContext "Server=(local); Database=CrudOperationDB; Trusted_Connection=true; Trust Server Certificate=true" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -force

Related Videos

What is Scaffolding?
Scaffolding a database produces an Entity Framework model from an existing database. The resulting entities are created and mapped to the tables in the specified database. For an overview of the requirements to use EF Core with MySQL, see Table 7.2, “Connector/NET Versions and Entity Framework Core Support”).
Рекомендации по теме