none
_db.ExecuteCommand in transactionscope RRS feed

  • Question

  • Hi,
    I have a   _db.ExecuteCommand in a transaction scope in c#. This uses SQL compact 3.5 database.
    An exception occurs within the transaction scope.
    I see that the   _db.ExecuteCommand is not rolled back.
    Is   _db.ExecuteCommand not valid within a transaction scope?

    Can you please throw some light on this?
    Thanks,
    Raj

    Rx
    Wednesday, February 11, 2009 10:24 PM

Answers

  • Have a look at this (read the bit on transactions):

    http://msdn.microsoft.com/en-us/library/bb425822.aspx#linqtosql_topic20
    Howard
    • Marked as answer by Rajeshvar Thursday, July 2, 2009 2:10 PM
    Thursday, February 12, 2009 1:18 PM
    Answerer