Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foreign key values not being updated on save
Message
From
28/07/2005 17:52:20
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01035978
Message ID:
01036775
Views:
11
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
Map
View

Click here to load this message in the networking platform