Repository navigation
Conversation
…829.11 (dotnet#3812) On relative base path root Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore , Microsoft.AspNetCore.Identity.EntityFrameworkCore , Microsoft.AspNetCore.Identity.UI , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.Extensions.Configuration , Microsoft.Extensions.Configuration.Abstractions , Microsoft.Extensions.Configuration.Binder , Microsoft.Extensions.Configuration.CommandLine , Microsoft.Extensions.Configuration.EnvironmentVariables , Microsoft.Extensions.Configuration.Json , Microsoft.Extensions.Configuration.UserSecrets , Microsoft.Extensions.DependencyInjection , Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileProviders.Embedded , Microsoft.Extensions.FileProviders.Physical , Microsoft.Extensions.Identity.Stores , Microsoft.Extensions.Logging , Microsoft.Extensions.Logging.Console , Microsoft.Extensions.Logging.Debug , Microsoft.Extensions.Options.ConfigurationExtensions , System.Text.Json From Version 11.0.0-rc.1.26411.119 -> To Version 11.0.0-rc.2.26429.111 Microsoft.DotNet.Arcade.Sdk From Version 11.0.0-beta.26411.119 -> To Version 11.0.0-beta.26429.111 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
|
what dev loop are you running? are you installing the changes in your |
|
Thank you for checking. During development, I launched the dotnet-scaffold project directly from the repository using the Visual Studio debug profile and passed the aspnet blazor-crud arguments against separate Blazor target projects. I also completed the final validation through the locally built and installed dotnet scaffold (20.1.0-dev) and dotnet-aspnet-codegenerator (11.0.0-dev) CLI tools. Both tools generated the expected CRUD pages, and the resulting applications built and ran successfully. Visual Studio was used afterward to inspect the generated Edit.razor files and verify state persistence across prerendering and interactive rendering. The implementation and automated template coverage include all supported target-framework versions. I hope this clarifies the development and validation workflow. Please let me know if any additional validation details would be helpful. |
Summary
Blazor CRUD scaffolding now preserves Edit page model state across prerender-to-interactive transitions, so loaded model data is retained when interactivity starts.
The change applies version-specific persistence strategies:
PersistentComponentState(TryTakeFromJson,PersistAsJson,RegisterOnPersisting)[PersistentState]via separate state propertyThis prevents Edit-page state loss/flicker during hydration and keeps form-bound model flow intact.
Changes
Edittemplates for:net8.0net9.0net10.0net11.0[SupplyParameterFromForm]model binding separate from persisted model state in .NET 10/11.Validation
dotnet-scaffoldsuccessfully.Edit.razorincludes framework-appropriate persistence logic.Compatibility
Editpage persistence behavior).Known Limitations
Output Screenshots
Attach:



Fixes #3445.