I am trying to create an editable root list (ERLB). When I try saving I receive an "Invalid Operation - updated not allowed" exception. I rarely use this pattern, but it seems from the book that business list base provides a default implementation of the DataPortal_Update method, but that doesn't seem to be the case.
All I am trying to do is load a collection of objects and try to save them.
var myCol = MyCollection.Load(id);
myCol.Property = "Updated";
Any help is appreciated!
Oh boy, looks like last time I worked on one of these was about 1 year ago. And seems like I posted the same question and Andy responded! :)
I will ask again what I posted as a reply
"One request, Rocky, could the templates be updated to include this? May save some confusion for others down the road. "
One year later, seems like it could have saved me some confusion :)
Fixed in the CSLA 4 templates.
Though we're talking about BLB here, not ERLB. There is no DataPortal_Update() in an ERLB subclass.
My bad, I see my mistake now.
I was referring to the Editable Root Collection stereotype, not the EditableRootListBase class.
Sorry for the confusion and thanks for fixing the template :)
Copyright (c) Marimer LLC