Blazor: Cascading Dropdowns | EF Core | ...

Blazor: Cascading Dropdowns | EF Core | DB First

Apr 13, 2020

#blazor Cascading Dropdown with #efcore and #dbfirst approach.

Source Code: Download Blazor Cascading Dropdown Code

In this video tutorial we are creating cascading dropdown using Entity Framework Core Database First approact by following steps:

1. Install packages required for creating DB Context classes

- Microsoft.EntityFrameworkCore.SqlServer

- Microsoft.EntityFrameworkCore.Tools

2. Generate DBContext

- Scaffold-DbContext "Your connection string here" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Tables Country, Cities

.. and follow the instructions in video. download source code from above given link

Enjoy this post?

Buy Zia A. Shaikh (Programming With Zia) a coffee

More from Zia A. Shaikh (Programming With Zia)