Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why there are no default values in the data?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01172537
Message ID:
01172859
Views:
18
Jess,

>Why is it that there are no default values in the newly created data eventhough there is a value set in the database structure? Like for instance, if I put default value of zero (0) in column/field amount and I created a new record, the amount is still null using MM Business Object to add data?

Your database default values don't kick in until you save the data to the database. That said, when you use the Business Layer Generator it looks at your database default values and should be using these as default values. I recommend running the BLG, selecting that database table, then the column and see if it specifies a default value.

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