Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another beginner question on updating data with MM .NET
Message
 
À
27/06/2008 17:32:14
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01327386
Message ID:
01328015
Vues:
14
Tim,

>I understand how to fix the procedure and I can modify or override the CreateUpdateCommand factory method. My question is what methods do I need to override so that I can pass the orginal row value for the @OldName parameter?

I agree with Bob that the best approach here is to redesign your database to not use primary keys that can be changed by the end user, but use a database-generated key such as an Identity column.
That said, if you don’t have control over the database, you need to change both the stored procedure and the associated data access class generated by the Business Layer Generator.

Best 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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform