Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Jason,
It turns out that my primary key values are not being fetched. I have two primary keys: iNames_id and iAddress_id. Both are identity columns. I'm running SQL Server 2000, if that makes a difference. And I do have the parent set to retrieve the auto increment value in abizobj.
>Jim,
>
>Don't think you're missing anything. I would suggest putting a breakpoint in the section of SaveDataSet where the parent key value is retrieved and step through it to see what happens. I'd also check to be sure that you have the parent set to retrieve the auto increment value. I thought I saw that in your ABusinessObject code you posted, but it never hurts to double-check.
>
>---J
>
>>Jason/Kevin,
>>
>>After setting the right breakpoints I pinpointed where things are going wrong. The child bizobj is not having its foreign key populated, despite having set the ForeignParentKeyField property. It was my understanding that setting this field to the correct value would automatically get the parent id and populate the dataview field with the correct value. Am I missing something?
Précédent
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