LINQ to SQL - some advice on Decimal types !?
Posted: Thu Nov 10, 2016 4:03 pm
Hi Pearl guys,
I need your help (please) with the next part of my L2S (LINQ to SQL) development.
It would appear that the query syntax for LINQ requires me to use SQL style query syntax and does not allow me to use .NET stuff in the LINQ query itself.
I have attached a few small images to show you my problem. I have a column type of 'smallmoney' which in .NET maps to a Decimal type. If I want to compare with a double 'cash' value type then I hit my problems.
Oh! and to cap it all off the .NET type is a Nullable<Decimal> needed to map to the defined SQL table column, which can be null.
HELP !! help ?? HELP !? Nick, where are those SQL skills of yours ;-0)
Regards,
Phil.
I need your help (please) with the next part of my L2S (LINQ to SQL) development.
It would appear that the query syntax for LINQ requires me to use SQL style query syntax and does not allow me to use .NET stuff in the LINQ query itself.
I have attached a few small images to show you my problem. I have a column type of 'smallmoney' which in .NET maps to a Decimal type. If I want to compare with a double 'cash' value type then I hit my problems.
Oh! and to cap it all off the .NET type is a Nullable<Decimal> needed to map to the defined SQL table column, which can be null.
HELP !! help ?? HELP !? Nick, where are those SQL skills of yours ;-0)
Regards,
Phil.