CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Child Collection Delete

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 1 Reply | 2 Followers

Not Ranked
5 Posts
tanny posted on Thu, Jun 28 2012 9:30 AM

All,

I have parent - child class relationship and there is sceanrio where I need to delete all child objects only (through referential integrity). Can someone please assist on this regard as I'm new to CSLA and trying to understand the basics?

It would be great help to me if I can get some samples on how delete works in parent child relationship.

 

Regards,

Tanny

All Replies

Top 10 Contributor
9,270 Posts

As you probably know, CSLA is not an ORM. It is a framework that helps you create powerful IN-MEMORY business objects.

When you delete a child from a BusinessListBase collection, the object is moved to a DeletedList collection inside the main collection. When the collection is saved, your DAL is invoked to delete the items in the DeletedList, and then to insert/update any changed items in the main list.

Rocky

Page 1 of 1 (2 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems