EditableRootList Save

EditableRootList Save

Old forum URL: forums.lhotka.net/forums/t/6920.aspx


xAvailx posted on Friday, May 08, 2009

CSLA 3.6.1

I am using the editablerootlist stereotype, inherits from BusinessListBase.

When I try calling the Save, I get receive an "invalid operation - update not allowed" exception. If I override DataPortal_Update on my class and manually save the items in the collection it works.

I guess my question is in the book, it says "BusinessListBase class includes a default implementation of the DataPortal_Update() method, which loops through all child objects....) but I don't see this default? Looking at the templates, it doesn't override DataPortal_Update either...so what gives? :)

Have others gotten this to work?

My unit test looks like this...

Dim dies = RequestItemDies.GetRequestItemDies(requestItemId)

dies.Assign(dieId)

dies = dies.Save()

ajj3085 replied on Friday, May 08, 2009

See this thread: http://forums.lhotka.net/forums/thread/30565.aspx

xAvailx replied on Friday, May 08, 2009

Thx!

One request, Rocky, could the templates be updated to include this? May save some confusion for others down the road.


Copyright (c) Marimer LLC