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

后端 未结 4 1770
野的像风
野的像风 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:42

    I think the data type of the columns inside your database table is Int32 but your data model has double. You need to change the data types of your data models to int. By materialized it means the type it got when it ran the query on the database.

提交回复
热议问题