Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Values not getting into the entity
Message
From
23/02/2016 07:38:21
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Values not getting into the entity
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01631867
Message ID:
01631867
Views:
61
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
Next
Reply
Map
View

Click here to load this message in the networking platform