Application State: Carl Franklin's Blazor Train Ep 15 Update

preview_player
Показать описание
Carl updates an older topic: Application State with persistence.

🔗 Download Files 🔗

🚀 Get Started Today – Free 30 Day Trial 🚀

✅ Pricing and Online Demos ✅

🆘 We Are Here to Help 🆘

👍 Follow DevExpress on Social Media 👍

🏁 Review Customer Testimonials 🏁

#DevExpress #devexpress_blazor #devexpress_web #aspnet #aspnetcore #blazor #datavirtualization #blazortraining #carlfranklin #blazortrain
Рекомендации по теме
Комментарии
Автор

Your clear, fluent and understandable narration is very valuable for foreigners like me. I learned a lot from you. Thanks for your contribution.

mrsendem
Автор

These videos are the best you can find about Blazor. Please continue !!!

LobsterHarry
Автор

Thank you,
You help me a lot with this explanation.

jonasoliveira
Автор

Hi Carl, you are the King! Congrats for your play list.

LucaCorallo
Автор

I've been coding for decades and I've never seen a video that covers as much information as clearly (and that worked the first time!) as this one. This is the second huge issue that Carl helped me fix in Blazor!

joshuaserwatien
Автор

I've recreated your code and love it. It works within a standalone solution.

But I'm trying to add the project to a solution that has other projects and I'm getting a Null error when trying to reference AppState.

Is it possible to make your state solution as an added project? If so, what extra steps are needed beyond adding a reference to the added project?

keithprice
Автор

Thanks for the super useful training content. Would it be possible to post a training video for application state management for blazor web app in .net 8?

johndoe-xy
Автор

I'm still relatively new to C# and Blazor, so forgive the naïve question.

Is there never a chance that the private Caller field would get changed by a subsequent call before the private property setter has a chance to refer to it?

keithprice
Автор

Very nice and clear example, thank you! Is it thread-safe (e.g. for Blazor Server)?

SKglitches
Автор

Is it possible with this technique to persist an OBJECT? For example, a List<Student>?

keithprice
Автор

Could it be done using AppState.Property = value instead of AppState.SetProperty(caller, propertyName, propertyValue)?
MVVM Community Toolkit library has some source generators for similar cases (for reactive properties)

SKglitches
Автор

I am having trouble getting my version of the code to build, I cannot see all of the lines properly, especially in Program.cs.
Is there a version of this project available to download, or more easily seen in a previous episode? thanks :)

onigvd
Автор

Nice video as always, but feels a bit too JavaScripty. Instead of property name and type name, it should have been an expression tree with lambdas and just instance of Type. Then SetProperty method can be a generic and help you pass the correct data. And it would work with nested objects.

As for data serialization, you can use [DataMember] annotations on properties you want to serialize, and then Newtonsoft.Json has this nice method PopulateObject, which deserializes json to already existing objects, and should (I think) work with private setters. So no need for a loop over properties, and again, it would work with nested objects. Still, great inspiration!

Qrzychu
visit shbcf.ru