Skip to content

Commit 27744c9

Browse files
russblairwfacey
andauthored
BusinessBase SaveAsync exception issue (#4032)
* Remove debugging catch logic in SaveAsync * Added logic to create unique GUID in FakePerson --------- Co-authored-by: Will Facey <[email protected]>
1 parent 9950956 commit 27744c9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Source/Csla.Blazor.Test/Fakes/FakePerson.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected override void OnChildChanged(Csla.Core.ChildChangedEventArgs e)
9595
[Create]
9696
private void Create([Inject] IChildDataPortal<FakePersonEmailAddresses> dataPortal)
9797
{
98-
Id = new Guid();
98+
Id = Guid.NewGuid();
9999
// Create an empty list for holding email addresses
100100
LoadProperty(EmailAddressesProperty, dataPortal.CreateChild());
101101

Source/Csla/BusinessBase.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,6 @@ protected async virtual Task<T> SaveAsync(bool forceUpdate, object userState, bo
196196
{
197197
result = await dp.UpdateAsync((T)this);
198198
}
199-
catch(Exception ex)
200-
{
201-
var msg = ex.Message;
202-
}
203199
finally
204200
{
205201
if (ApplicationContext.AutoCloneOnUpdate)

0 commit comments

Comments
 (0)