The specified cast from a materialized 'System.Int32' type to the 'System.Double' type is not valid

后端 未结 4 1764
野的像风
野的像风 2020-12-06 09:00

When executing the following query, I get the error:

The specified cast from a materialized \'System.Int32\' type to the \'System.Double\' type is n

4条回答
  •  春和景丽
    2020-12-06 09:33

    For me I was calling a stored procedure from EF 6 of which I wrote a poco, but I didn't write the sproc. I needed to look at all the tables that had field returning data types. and then change my Poco from a int to boolean.

    public Boolean Active { get; set; }
    

提交回复
热议问题