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