Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/entity-framework/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Entity framework 实体框架中的函数导入错误_Entity Framework - Fatal编程技术网

Entity framework 实体框架中的函数导入错误

Entity framework 实体框架中的函数导入错误,entity-framework,Entity Framework,嗨,我在实体框架中有一个错误。我将sp get()导入EF并以复杂数据类型“GetResult”返回结果。在edmx xml中,我已将“Amount”类型设置为decimal <ComplexType Name="Get_Result"> <Property Type="String" Name="Description" Nullable="true" MaxLength="255" /> <Property Type="D

嗨,我在实体框架中有一个错误。我将sp get()导入EF并以复杂数据类型“GetResult”返回结果。在edmx xml中,我已将“Amount”类型设置为decimal

<ComplexType Name="Get_Result">
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="Decimal" Name="Amount" Nullable="false" />
          <Property Type="Decimal" Name="Gst" Nullable="false" Precision="19" />
          <Property Type="Decimal" Name="Total" Nullable="true" Precision="19" />
        </ComplexType>
它一直给我这样的错误信息。我在EF的任何地方都找不到int32,并且已经多次更新和构建了EF

The 'Amount' property on 'Get_Result' could not be set to a 'Int32' value. You must set this property to a non-null value of type 'Decimal'.

感谢您的帮助…

通过处理空异常解决了此问题

The 'Amount' property on 'Get_Result' could not be set to a 'Int32' value. You must set this property to a non-null value of type 'Decimal'.