Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Deleting
Message
 
À
17/07/2013 09:01:26
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01578432
Message ID:
01578692
Vues:
52
Frank,

>I stepped through the code and it is showing me that no deletion occurs because the code looks for a business object, but my form is bound to a table. (See my first message as to how the form's datacontext is set.)
>
>Any ideas on how to handle this scenario?

Did you set the BindingSource property on the mmButtonDelete control on that window? If you are using class MM .NET entities, there needs to be an IgnoreNavigation = true inserted into the call path of the DeleteEntity to prevent the display of the Save Changes dialog (mmBusinessUIHelper.DeleteEntity) This only occurs with business objects that are using the datatable or dataviews.

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