// from my PolicyFee BO >protected override void HookConstructor() >{ > // Place code here to be executed when the business object instantiates > this.AutoSaveOnParentSaved = true; > this.AutoCancelOnParentCancel = true; > this.AutoDeleteOnParentDeleted = true; > this.AutoEmptyOnParentAdded = true; > this.ForeignParentKeyField = "PlanFK"; >}>
// from the RegisterBusinessObjects method > this.oPlan = (Plan)this.RegisterPrimaryBizObj(new Plan()); > > this.oPolicyFee = (PolicyFee)this.RegisterBizObj(new PolicyFee()); > this.oPlan.RegisterChildBizObj(this.oPolicyFee);>