Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Transactional Fetch with Update

$
0
0

I have a BusinessListBase class which I want to fetch a number of children, and at the same time update a status property and commit this transactionally.

Essentially I am fetching a batch and ensuring that no-one else will fetch these same items.

How would I go about doing this?

Inside the DataPortal_Fetch I can open a new SqlConnection and create a new Transaction to fetch and populate the children.  Then within that I need to change a property on each of the children and Save the whole list.  But won't calling Save on the BusinessListBase from within the DataPortal_Fetch cause problems?

 


Viewing all articles
Browse latest Browse all 764

Trending Articles