Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Link Tables
Message
 
À
15/03/2004 19:35:41
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
00886556
Message ID:
00886936
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform