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:
01173120
Views:
11
>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,

Is there a way to tell BLG to enforce Set Default without checking each column? It is given that from time to time, we add columns to database tables so we regenerate business objects entities and rules. That said, if mm.Net does not check the SET DEFAULT automatically if there is a default value set on a column, then clicking the columns one-by-one is a lot of work I think. This thing adds to the already annoying list of database tables which are not arranged alphabetically.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform