Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

SaveAynsc and await

$
0
0

We are currently saving our  CSLA object with SaveAsync using the following syntax:

Model = await Model.SaveAsync();

I am getting an error with Object marked busy cannot be saved. It seems to be busy with validation. 

Our thought is to override save async to look at isbusy if isbusy then it needs to listen for the event for validation complete, then call base.saveasync - but wondering if there's a better alternative.

Thanks!


Viewing all articles
Browse latest Browse all 764

Trending Articles