Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Entity default values not being maintained
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01445715
Message ID:
01445931
Views:
38
Bob,

>I am in the process of moving my development environment from my old PC (Windows XP) to a new Windows 7 64 bit OS machine. I have installed MM.NET and moved over my code to the new PC. The version of MM.NET on both machines is 3.5.
>
>In testing the business object logic, I am finding out that the Entity values that are being set as default values in the HookSetDefault method of the BO are not being held, meaning that the code is executing however, later on when the Save takes place these values are no longer there (e.g. date default values that should have been set to DateTime.Today are taking on '01/01/0001' and other char and numeric types are taking on null values).
>
>Is this familiar to anyone? Have I missed a setting somewhere?

I agree with Tim that this is unusual. I recommend setting a breakpoint in one of your entity object's properties to see when/how the value is getting changed.

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