Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Placement of delete rule - business objects
Message
 
À
18/07/2006 21:50:09
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:
01137492
Vues:
22
Bill,

>Thanks for your answers. When I stepped thru I found that my validation rules weren't checking for the deleted status on the rowset. This is the code actually throwing the exeception:
>this.ValidateName(dr["cname1"].ToString());
Right...so, if you turn off ImmediateDelete you have to make sure all code you write checks a DataRow's RowState before attempting to access its data. There are some code samples that demonstrate how to do this in the MM .NET Dev Guide topic "ImmediateDelete: Immediately Deleting from the Database".

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

Click here to load this message in the networking platform