Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foreign key values not being updated on save
Message
De
28/07/2005 17:52:20
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01035978
Message ID:
01036775
Vues:
12
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
Fil
Voir

Click here to load this message in the networking platform