Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one to many- many to one relation between customer and order with cascage="all" on the one to many.

when I update single order in the custoemr and call customer.SaveOrUpdate,
for some reason it creates sql statements that update all the orders.
cant it just update the single order i changed ?

also, why does it update the customer in the db, while none of its fields
was updated ?

Thanks
Posted
Updated 28-Apr-12 5:35am
v2
Comments
OriginalGriff 29-Apr-12 3:07am    
Without seeing the code, we would be guessing.
Use the "Improve question" widget to edit your question and provide better information.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900