Create a Small Blog in Blazor - Part 2 - Entity Framework Integration

preview_player
Показать описание
We are continuing to build our small blog in Blazor. In this video, we are going to integrate Entity Framework.

We go through the necessary entities and explain how we hook up the models in Entity Framework by using reflection.

Onto the demonstration and we go ahead and configure Entity Framework to be used in our Blazor application. We also set up our test SQL Server database. Thereafter, we use EF Migrations to export our entities from our application to our database.

Finally, we test out an Entity Framework query in Blazor to ensure that the integration between Blazor and Entity Framework is successful.

📖 Learn Blazor WebAssembly with our online courses 📖

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

Doesn't the initial migration create the database ?
Why needed to create the database first before migration?

Time