Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSLA.net - Inheritable Base classes

Tags:

c#

csla

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.

alt text

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?

like image 888
user366312 Avatar asked Mar 01 '23 08:03

user366312


1 Answers

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!

like image 161
Brad Leach Avatar answered Mar 13 '23 05:03

Brad Leach