I would like to ensure that var a has not changed between retrieving it and performing the update on var b.
var a = from item in....
if (a > 100) {
var b = from item in...
b.something = 100;
db.SubmitChanges()
}
How would I go about doing this? Do I just wrap the thing in a TransactionScope?