Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete(object[] primaryKeyValues) example please
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00902261
Message ID:
00902492
Views:
12
Patrick,

>Perhaps the foreach statement should read:
> foreach(string PK in this.PrimaryKeys)...

Excellent sleuthing...you're exactly right! We'll fix this in the next version and give you credit in the What's New Guide.

>Please consider enhancing the documentation in \MMNetDevGuide1.1.chm::/_0Y80ZS806.htm, "Deleting Data using Business Objects" for this method, re: passing values in an array with the corresponding order of primary key columns in this.PrimaryKeys[]

We can add a code sample that will help clear this up. Here's an example:

Example in C#:
object[] KeyValues = new object[] {1001,16};
this.oOrderDetail.Delete(KeyValues, "OrderDetail");
In VB .NET:
Dim KeyValues() As Object = {1001, 16}
Me.oOrderDetail.Delete(KeyValues, "OrderDetail")
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