Reputation: 109
I have to use...
Code of C#
public double price { get; set; }
Code of SQL
Select id, (0.0) AS price from Product
but during this code I got this error:
"ExceptionMessage":"The specified cast from a materialized 'System.Decimal' type to a nullable 'System.Double' type is not valid."
Also I don't want to change code of c#, For solving I want to change code of Sql (not c#)
Upvotes: 1
Views: 643