Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Values not getting into the entity
Message
De
23/02/2016 07:38:21
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Values not getting into the entity
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01631867
Message ID:
01631867
Vues:
59
Hi,

I have a WPF MM.NET 2010 application. One form is not storing the values entered on the form to the underlying entity so when I save, I get the validation kicking in that the data cannot be null/empty. If I edit an existing record it works fine.

I have this in the XAML file:
    <mmwpf:mmBusinessWindow.DataContext>
        <SamaanSystems_IBC_Business:OutboundLIATRateEntity/>
    </mmwpf:mmBusinessWindow.DataContext>
The New button click has no code in it to override the default MM.net behaviour.

When debugging, the values shown on the form do not match what is in the entity so it looks like the datacontext is being pulled out from underneath the form but I can't find anywhere that is resetting it (and I don't know how to check the current datacontext when debugging).

Any help to push me towards solving this would be great.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform