Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why there are no default values in the data?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01172537
Message ID:
01172859
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform