Replies: 1 comment 1 reply
-
What are the expected sizes of these lists? 10 items or 10k items (or more)? There are some simple solutions for object graphs of a few hundred items that may not perform of an object graph of 10s or 100s of thousands of items. Regardless, one thing to consider is the use of command objects to update the underlying data store to match alterations done to the object graph. So rather than having the user manipulate the object graph and then saving the entire thing, it is sometimes possible to save each individual manipulation of the graph immediately, thus keeping the in-memory graph and the underlying data store in sync. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello again CSLA!
In a previous query in CSLA discussions, I asked about experiences of the community in modeling Tree data structures to try to begin a rather large project with the best information and "lessons learned" I could...
A second aspect of this project is a fairly systemic requirement to allow "mapping" elements of disparate parts of the overall object model to other elements. For example, suppose I have
root.EditableRedList<RedThing>
root.EditableBlueList<BlueThing>
The requirement is can be illustrated with something like this:
root.EditableBlueList[0].MappedRedThings<RedThing>
The purpose of the "MappedRedThings" property is to allow the "mapping" (add or remove, not modification) of "RedThings" to an individual "BlueThing".
So, one could say that the "MappedRedThings" is an editable list, but with read-only Children.
I am having a little trouble relating this situation to the discussed Class and Property "stereotypes" in CSLA documentation.
This also seems like a List<> version of the intergraph property stereotype, but I do not want to assume this is a good approach.
I am very curious of any community experiences with similar situations.
Your feedback would be greatly appreciated.
Thank you,
Doug
[email protected]
Beta Was this translation helpful? Give feedback.
All reactions