Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Placement of delete rule - business objects
Message
 
To
18/07/2006 21:50:09
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01137129
Message ID:
01137492
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform