1
我不得不使用...SQL - 类型无效
的C#
public double price { get; set; }
SQL准则
Select id, (0.0) AS price from Product
代码,但这个代码中,我得到这个错误:
"ExceptionMessage":"The specified cast from a materialized 'System.Decimal' type to a nullable 'System.Double' type is not valid."
另外我不想改变co (c#)
铸造你的sql值在C#端双倍价格=(双)dbValue' – Sherlock