Entity framework 实体框架中的函数导入错误
嗨,我在实体框架中有一个错误。我将sp get()导入EF并以复杂数据类型“GetResult”返回结果。在edmx xml中,我已将“Amount”类型设置为decimalEntity 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
<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'.