I have a requirement where i need
find order and replace with new one.. with same
order id in a transaction.. but when i write a code like as below
i am getting unique kye constraint exception for orderID..(for which i
have set in
the database) during OrderNew.Create();

Even if i remove the constraint my below code
doesn't work but it throws
StaleSateException


TransactionScope root = null;
Order oldOrder;
Order newOrder;

using( root = new TrasactionScope())
{
    oldOrder = Order.Find();
        oldOrder.Delete(); //work order id O
        OrderNewOrder.Create();\\Save is also not working..

}

Please let me what is the issue here...
Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en.

Reply via email to