when insert first:new MyPhoto,and InsertOnSubmit to dataContext memory second: new MyProcedure,and InsertOnSubmit to dataContext memory last:SubmitChanges and return true,no error
but when update first:new MyPhoto,and InsertOnSubmit to dataContext memory second: get MyProcedure object from dataContext and change foreign key id,that's MyPhotoID last:SubmitChanges and throw an Exception error message is [ Cannot add or update a child row: a foreign key constraint fails (`xxDataBase/xxTable`, CONSTRAINT `FK_xx` FOREIGN KEY (`ImgID`) REFERENCES `file` (`ID`)) ] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DbLinq" 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/dblinq?hl=en -~----------~----~----~----~------~----~------~--~---
