Dual object model in CSLA .NET

Dual object model in CSLA .NET

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


Bob Bedell posted on Saturday, November 29, 2008

Just out of curiosity, I recently read Rocky's article "Why is the data access in the business class?", which sketches a dual object model in CSLA .NET in which the data access code resides in a class separate from the rest of the business logic. The 'data-centric' class then exposes "any retrieved data in a way that the business object can pull the data into itself, so it can load its private variables with the values."

Is there any code floating  around out there that experiments with this implementation of CSLA .NET? If so, I'd be interested to have a look at it.

Bob

JoeFallon1 replied on Saturday, November 29, 2008

If you pre-order the 2008 book then I think you get an electronic version right away as a "preview version". I believe this is discussed in detail in the book.

Joe

 

Bob Bedell replied on Sunday, November 30, 2008

Thanks for the replys. Downloaded SubSonic and pre-ordered the book. It looks like the current e-book pre-order from Apress gets you the currently available first 21 chapters. Then the complete e-book is sent when it becomes available. I think the hard-copy is a seperate pre-order issue.

 Bob

dlambert replied on Saturday, November 29, 2008

I've been playing with SubSonic as a data-access layer for a CSLA project - it's not quite what Rocky was talking about, but it's similar in feel.  The SubSonic code works well as a separate assembly, if you're so inclined.  SubSonic 3 is in preview right now - still rough in a few spots, but might be worth a look.

Copyright (c) Marimer LLC