Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete Entity
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01325838
Message ID:
01326423
Views:
14
Bob,

>I have a class that inherits "mmBusinessProcess".
>
>I have an entity that contains one record from a CaseHeader table.
>
>I have the parent-child relationships working becuase I can save data to the CaseHeader table and all of the child tables.
>
>I want to delete this record from the table, but I cannot get it to delete. I've tried the following:
>
>Me.oCaseHeader.Delete()
>Me.oCaseHeader.Delete(Me.oCaseHeader.Entity.chd_GUIDPK)
>Me.oCaseHeader.DeleteEntity()
>Me.oCaseHeader.DeleteEntity(Me.oCaseHeader.Entity)
>
>and a couple other variants of the above calls.
>
>How should I be calling one of these methods to delete the row?

Any of the methds you liste should work properly. Are you getting an exception at run time? If so,please post the error message and full stack trace.

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
Next
Reply
Map
View

Click here to load this message in the networking platform