程序运行时出现的错误提示:
Exception Details: System.InvalidOperationException: The type parameter 'JcqSolutions.JcqCommerce.BusinessLogic.Content.AdvertismentsManagement.Advertisment' in ExecuteFunction is incompatible with the type 'JcqSolutions.JcqCommerce.BusinessLogic.Data.Advertisment' returned by the function.
Source Error:
Line 2632: ObjectParameter totalRecordsParameter = new ObjectParameter("TotalRecords", typeof(int)); |
Source File: E:\Downloads\jcqCommerce_1.10_Source\Libraries\Jcq.BusinessLogic\Data\JcqObjectContext.cs Line: 2634
我在数据库中新加了一个表,后台程序通过存储过程访问这个表的数据,在调用存储过程时出现了返回类型不匹配的错误。
这段代码在应用到了linq环境后才出现这个问题的,之前是好用的,是映射的model的错误还是代码有问题呢
将 var result = base.ExecuteFunction<Advertisment>("Sp_Adv
改为
var result = base.ExecuteFunction<JcqSolutions.JcqCommerce.BusinessLogic.Data.Advertisment>("Sp_Adv
试试