Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foreign key values not being updated on save
Message
De
27/07/2005 11:46:50
 
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:
01036269
Vues:
11
Hi Kevin,

>Did you check out the MM .NET Help topic "ForeignParentKeyField: Child Object Foreign Parent Key Field"? If you have set the ParentForeignKeyField property in the child business object but the value is still not getting updated, I recommend setting a breakpoint in mmBusinessObject.PopulateForeignParentKeyField() to see if this code is being executed.
>
Stepping through from mmBusinessObject.PopulateForeignParentKeyField(), it does execute but _ForeignParentKeyField = null so it fails here :)
		protected virtual void PopulateForeignParentKeyField()
		{
			if (this.ForeignParentKeyField != null && this.ParentKeyValue != null)
			{
				this.PopulateKeyField(this.ForeignParentKeyField, this.ParentKeyValue);
			}
		}
So, I'm missing where _PopulateForeignParentKeyField gets populated. Any insight?

Thanks,

Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform