Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
updating failed the child recode while saving the parent
Koteswararao Mallisetti
Jan 3 2013 5:02 AM
1.2k
Reply
hi ,
i Have two table
"Customer" & "VisitorSession"
Visitorsettion have the foreign key constraint with customer please see the bellow image
when i try to insert new customer i am getting the following error that "
An error occurred while updating the entries. See the inner exception for details.
"
in my research I found the visitor session last recode is update with the fkCustomerId value is 0 that is zero is coming from the newcustomer object so we get the error but int he code i didn't pass any values to this visitorsession navigation values while debug if found the navigation collection count is "0" any one please guid me how can i come out this problem . debug image is as follows
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Classic Asp application loading very slow from iis 7
Split function using sqlserver in asp.net