Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Network:
Windows 2003 Server
Kevin,
>If you open up mmBusinessObject.cs and do a search for "ParentKeyValue" you can see it is set in the StateChangeHandler method. The StateChangeHandler method fires for a child business object whenever the state of the parent changes. In the "default:" case of the switch/case statement the ParentKeyValue property is set from the event arguments passed from the parent to the child business object.
>Have you registered the child object with the parent?
Yes, the child is registered with the parent. At the end of mmBusinessObject's StateChangeHandler method switch/case statement default case the event argument e.PrimaryKeyValue is always undefined. :(
And, yes, the PrimaryKey field is properly populated.
I'm seeing rows undefined in the Saving and Saved states, yet changes are being written to SQL Server except for the foreign key.
Mike
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