I was reading the book "Expert C# 2005 Business Objects"
.
The book describes various base classes to be inherited by various classes to solve real-world problems.
But the book does not provide examples of all those classes.
Can anyone give me all of those examples (with reason) to better understand CSLA?
For example, Which real-world objects are to be considered as Read-only Root Objects (Student/Product/Order, etc.)? And Why?
The ProjectTracker sample (which can be downloaded on the CSLA downloads page) has examples of all the main sterotypes used in the CSLA books.
Chapter 6 in the book (Object Orientated Application Design) gives an overview of the design process of business objects & Chapter 8 (Business Object Implementation) gives the actual implementation of the Project Tracker objects.
In terms of your specific query - I haven't often used "Read-only root" objects. However, I often use "Read-only list root" objects though. An example would be: I have a list called ProductInfoList, which has a read-only child ProductInfo. This would be returned to the user either in a ListBox, or from a search result, etc.
Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With