Skip to content

Commit

Permalink
BusinessBase SaveAsync exception issue (#4032)
Browse files Browse the repository at this point in the history
* Remove debugging catch logic in SaveAsync

* Added logic to create unique GUID in FakePerson

---------

Co-authored-by: Will Facey <wfacey@carus.ca>
  • Loading branch information
russblair and wfacey authored Jun 15, 2024
1 parent 9950956 commit 27744c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Source/Csla.Blazor.Test/Fakes/FakePerson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected override void OnChildChanged(Csla.Core.ChildChangedEventArgs e)
[Create]
private void Create([Inject] IChildDataPortal<FakePersonEmailAddresses> dataPortal)
{
Id = new Guid();
Id = Guid.NewGuid();
// Create an empty list for holding email addresses
LoadProperty(EmailAddressesProperty, dataPortal.CreateChild());

Expand Down
4 changes: 0 additions & 4 deletions Source/Csla/BusinessBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,6 @@ protected async virtual Task<T> SaveAsync(bool forceUpdate, object userState, bo
{
result = await dp.UpdateAsync((T)this);
}
catch(Exception ex)
{
var msg = ex.Message;
}
finally
{
if (ApplicationContext.AutoCloneOnUpdate)
Expand Down

0 comments on commit 27744c9

Please sign in to comment.