Blazor StateHasChanged() Oct. 12, 2018

A review of the ASP.NET Community Standup, what happened at DevUp, highlights of Blazor Dual Mode and more. This week we dive into Entity Framework Core’s In-Memory Database Provider. We do some basic CRUD operations using Blazor and EF.

On this weeks ASP.NET Community Standup, the topic is Blazor! Steve Sanderson demo’s the new Provider component and a method of sharing data between components that is so easy it makes Daniel Roth’s head explode.

On this show we used the In-Memory Database Provider to create a data sandbox. The first half of the show I struggled with the database not persisting as I had recalled it working in the past. Thankfully the chat room pushed through the issue and we found a resolution together. After the show ended, I looked at some previous samples and found how I had made it work before using only Startup.cs. You can see a reworked version of this example of Startup.cs below. This method doesn’t require hacking at Program.cs.