Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete Entity
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01325838
Message ID:
01326423
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform