Blazor: Cascading Dropdowns | EF Core | DB First

preview_player
Показать описание
#blazor Cascading Dropdown with #efcore and #dbfirst approach.

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.

Рекомендации по теме
Комментарии
Автор

Very good Tutorial. This was exactly what i needed for my problem. Keep up good work!! :) . You have a new subscriber

andersdahl
Автор

thank you so much sir you explained it in very easy manner :)

mubi
Автор

thanks
hope create master details crud page

ahmedrashed
Автор

Is there any way we can select the tables that we import from the DB instead of pulling all of them? Or do we need to remove the .cs files manually in the project?

bkcy
Автор

You explain things nicely. but why do you show how to do things that should not be done, that are not right? Why not show things as they are done "in the real world" from the start. even if it is just a demo shouldn't it reflect how things are done "the right way"?

zsomborv