Saving then Fetching in a Transaction (COM+)

Posts   
 
    
psandler
User
Posts: 540
Joined: 22-Feb-2005
# Posted on: 15-Nov-2006 22:05:48   

This is for using MBUnit's Rollback functionality, which wraps up a whole test in a COM+ transaction.

Basically, I create an entity graph and save it. Then I want to fetch the graph I just saved and verify that the fetch worked properly (actually, the filter on the fetch).

It seems, though, that the entity I fetch doesn't have the correct (or any) column values when I fetch it back. The Fields.State does equal EntityState.Fetched, but I don't see my values.

Is there something else I need to do, or is what I'm trying to do simply not possible?

Thanks,

Phil

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Nov-2006 07:42:47   

Have you read the COM+ transactions section in the LLBLGen Pro manual "Using the generated code -> Adapter -> Transactions"

If yes, and your code still have problems, please post a code snippet. With some helpful information as shown here: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7722

psandler
User
Posts: 540
Joined: 22-Feb-2005
# Posted on: 17-Nov-2006 17:34:27   

Thanks Walaa.

It actually all works exactly as expected. The problem was in my own code. flushed