Information générale
Catégorie:
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...
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement