MarimerLLC / csla

A home for your business logic in any .NET application.
https://cslanet.com
MIT License
1.23k stars 394 forks source link

Blazor ViewModel with ManagedObjectLifetime save issue #4026 #4031

Closed russblair closed 2 weeks ago

russblair commented 2 weeks ago

Blazor ViewModel with ManagedObjectLifetime save issue (#4026)

1) Created unit test SaveThenCancel_ValidatePropertyValue to reproduce the issue 2) We moved the ApplyEdit from after the clone to before the clone so that it is applied to the model. 3) Added logic to the finally block of the save to call BeginEdit if the ManagedObjectLifetime is true and the EditLevel is zero. 4) SaveThenCancel_ValidatePropertyValue unit test now passes