Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Link Tables
Message
 
To
15/03/2004 19:35:41
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
00886556
Message ID:
00886936
Views:
15
Steve,

>I have a CustomerContacts table that is used to link my Contacts table to my Customers table. I need to create a web form to maintain Customer Contacts, but I'm not sure of the best way to handle the fact that I need to insert records in both tables even though the data entry really is just for the Contacts table (assuming that the Customer record already exists and has been previously selected).
>
>I'm sure that I could do this in a couple of ways, but what is the appropriate way inside the MM Framework?

This is a great question...

Without knowing more details, I'd recommend putting logic in the Contacts business object for updating the many-to-many link table. You've already got the Contacts and Customer PKs so you can create a new record with these values in the link table.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform