General information
Category:
The Mere Mortals .NET Framework
I have a combobox with all properties set as stated in the "Jump Start". When I save the "BindingValueSource" business object all fields are filled in as expected, but my FK field gets replaced with the number 0 instead of retaining the value that was passed when the save began.
When I create the relationship on the database the save throws an error stating that there's a conflict on the "BindingSource" business object of the combobox. I'm only adding one record and thats to the "BindingValueSource" business object. When I get to "mmBusinessForm.cs" and look at the "bizObj" it has all the values I'm expecting. When it gets to:
// Call the business object's SaveDataSet method
result = bizObj.SaveDataSet(tableName, currentRow);
-------->Line 1468 on mmBusinessForm.Save
It throws an error when I have the relationship between the two tables.
The Insert statement sonflicted with foreign key constraint...
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only