I have a working ListFactory Update method but I like to look at an example if there is one out there. My solution required me to make some protected methods public in the list (like the deleted list). This makes me think there may be a better solution.
I looked in the 2008 Business Objects and new Using CSLA 4.0 objects. I may be missing something but I can not find an example or outline. I also have the latest video series.
This is covered in the upcoming Using CSLA 4: Data Access ebook I'm writing right now.
You are looking for the ObjectFactory base class in Csla.Server. Inherit from this and use the protected methods it exposes to break encapsulation and modify the private state and metastate of your business objects.
Thanks
I found the GetDeletedList function.
The steps I am taking are:
Create a new List
Get the Deleted List
Iterate through the Deleted list, calling Update on each item in the list to delete the item from the database.
Then I iterate through the passed in list.
If the item IsDirty == true then I call update and it to the new list.
If the item IsDirty == false then I clone it and add it to the new list.
Is there something I am missing?
I wouldn't create a new list. I do this:
Thanks again for the great support.
Copyright (c) Marimer LLC