I've just spent almost 3 hours debugging and still can't find a fault with
my code.

The reproduction looks like this:

using (var tx = session.BeginTransaction())
{
    var product = session.Get<Product>(message.ProductDto.Id);
    product.Name = message.ProductDto.Name;
    product.PartNumber = message.ProductDto.PartNumber;
    product.Price = message.ProductDto.Price;
    session.Update(product);
    tx.Commit();
    Logger.InfoFormat("Updated Product {0}", product.Id);
}

I change some value of the entity in the UI, this code is run (over the
wire) and the IsDirty() Method is set to False and no Update is generated.
(Checked with NHProf..)
I just re-checked and upon changing the value of product.PartNumber for 8
times it didn't generate a UPDATE once.

It gets significantly worse once I run this with distributed transactions
from NServiceBus where I loose every second UPDATE to the database without
any error or anything.. It just doesn't update the DB since it doesn't think
the session is dirty.

Is there anything I should be aware of?

greetings Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to