Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generating Business Object
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01516654
Message ID:
01516790
Views:
35
Robert,

>Hello. I have a field, "Cost" in an SQL Server table. The data type is numeric(10,2).
>I don't want to save NULL values in this field so the default value is 0.00.
>
>When creating the business object for that table I get an error
>
>"Warning treated as error: Implicit conversion from "Double" to "Decimal"
>
>I get the same error when I change the data type to decimal(10,2). How do I get this to work with the business objects?

I recommend using the SQL Server "money" data type in this case. You can specify a default value of zero (0) without the decimal points and that works fine.

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
Reply
Map
View

Click here to load this message in the networking platform