>this.PrimaryKey = "numMemIndID"; >this.HookConstructor(); >this.EntityCentric = true; >this.AutoSaveOnParentSaved = true; >this.AutoNewOnParentAdded = true; >this.AutoDeleteOnParentDeleted = true; >this.AutoEmptyOnParentAdded = true; >this.ForeignParentKeyField = "numIndId"; >>and to set the relationship on the form I've got
> // Instantiate and register the business objects > this.oContact = (Contact)this.RegisterBizObj(new Contact()); > this.oMemberLink = (MemInd)this.RegisterBizObj(new MemInd()); > this.oContact.RegisterChildBizObj(this.oMemberLink); > lNewContact = (Int32.Equals(this.contactId, 0)); > if (lNewContact) > { > this.oContact.NewEntity(); > // Shouldn't have to do anything here, right? > } > else { > // Get the Customer Entity object loaded > this.oContact.getContactByID(this.contactId); > this.oMemberLink.getLinkForContact(this.contactId); > } >>
this.oContact = (Contact)this.RegisterPrimaryBizObj(new Contact());