SaveAsync() am I missing something?

SaveAsync() am I missing something?

Old forum URL:

geordiepaul posted on Thursday, July 03, 2014

So I've been trying to implement the new SaveAsync() methods in 4.5.6. There is not much info or guidance on how these should be used, or not that I can find anyway.

I always get an error "DataPortal.Update failed (TemplateEdit.IsBusy == true)"

On debugging the DataPortal Update is marking the object as busy and then bailing before it ends.

public async Task<Model> Post(Modelmodel)
            // do something to create and populate an object
            obj = await obj.SaveAsync();
            return new Model(obj);

Its as simple as that. DataPortal_XYZ are the regular ol' voids etc. Is this correct?
There are no business rules so I've ruled (pardon the pun) them out.

RockfordLhotka replied on Wednesday, July 09, 2014

This is in an ASP.NET service implementation?

Do you have Csla.Web.dll referenced in your web project? That is required as it contains some ASP.NET specific implementations of low-level CSLA types.

Copyright (c) Marimer LLC