Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Placement of delete rule - business objects
Message
 
À
17/07/2006 22:42:39
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01137129
Message ID:
01137439
Vues:
18
Bill,

>I want to do some validation when the user deletes a record. I have code in the HookPreDelete that returns True/False and sets a broken rule message. Should put the validation in the business rules and call that method from HookPrDelete ? I was thinking in the form I would check the return from the business object delete() method and then display broken rules text. Is this the proper way ? Suggestions ?
>Seconds question: If I turn off ImmediateDelete, what do I call to send the delete to the backend ? SaveRow() error's because the record is deleted.

Your current architecture should work just fine...I've done something similar in the past.

Regarding your second question, when you turn off ImmediateDelete, what error are you getting under SaveRow()? Can you post the full call stack here?

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