General information
Category:
The Mere Mortals .NET Framework
Environment versions
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
Previous
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