Blazor server-side app with CRUD operations against a Web API / EF / SQL Server endpoint

preview_player
Показать описание
In this tutorial I show how to build a comprehensive Blazor solution using .NET Core 3.0 comprising (1) a standard class library (2) a Web API server-side web app and (3) a server-side Blazor application that uses SignalR to update the DOM by consuming an API service.

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

I'm not sure if I'm doing this wrong, or if it's something you quickly gloss over because it's obvious to experienced web developers, but I had to set both the SchoolAPI and ServerBlazor as startup projects in the solution properties to get the data to load. Hope this helps other newbies!

nickchng
Автор

Good video, there is a solution for directly inject automatically the URI base address on your service student for the httpclient requests?

Shinobize
Автор

For my CRUD insert onclick, I changed it to this in order to get it to work <button @onclick="Insert" class="btn btn-warning">Insert</button>

Cloudlin
Автор

Correct me if I'm wrong, but with BlazorServer app, it runs on the server, so you would not need an API project. You can simply make a Service class that has the DbContext injected into constructor, like you did in the API Controller. With a BlazorClient app you would call a WebAPI project because it runs on the client machine.

albxdotcom
Автор

Hi Medhat, I folow your tuturial step by step, but I got stuck at the migration process . error : Value cannot be null. (Parameter 'connectionString').

hassanesilverlight
Автор

I am having trouble with this piece of code <tr @onclick="@() => Show(item.StudentId))"> in the ServerBlazor Students.razor page

gerbenweijers
Автор

This is an excellent tutorial. Unfortunately, the edit and add functions don't work when using blazor preview 6. I have the same problem with other tutorials not specific for preview 6. I still haven't found the solution. Thanks for your efforts.

LorenzMichels
Автор

Not able to fetch data by using the bind keyword.
any idea, please?



bind keyword is not working. any other keyword for getting data from a textbox?

I also clone your project for help but the same issue on that as well.




Thanks

kingparth
Автор

Can't we use EF in server side blazor without creating an API?

ronreyes