Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generating Business Object
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01516654
Message ID:
01516790
Vues:
36
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform