Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BizObj in : mmMaintenanceForm with FKeys?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00973265
Message ID:
00973308
Vues:
19
Stephen:

You can take control of the update process by creating your own DataAccess class for the business object by creating an update command that updates just one table. See "Creating Custom Data Access Classes" in the documentation.

But I see a larger problem here. If you are doing a join to gather the data into one table then I assume in your DataTable you have columns for VendorID and VendorName. What if the user modifies the vendorid? You would have to manually update the VendorName to keep them in sync so you will need to retrieve a list of vendors from the database anyway. So your alternative is to not use a join. Keep separate tables in the DataSet and use a DataRelation to keep the VendorID Foreign key and vendor name in sync. Then you don't have to worry about creating the custom data access component.

Either way should work.

>I have data for the datagrid that really needs to show the lookup columns. Yet when I write the dataset back, it errors on it's multi-table aspect.
>
>It's an inventory piece with an InventroyType, as well as a Vendor column.
>
>I can display the data with the 3 table join, I just can't save a new record.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform