这是我现在遇到的错误:
The argument types 'Edm.String' and 'Edm.Decimal' are incompatible for this operation. Near equals expression, line 1, column 156.
我知道这个错误是一个兼容性问题,但是在查看表格并看到参数匹配并且我认为声明正确之后,我需要知道这个引用的代码行。我唯一要质疑的是表中声明为货币的数据,但我将它们声明为十进制。这是爆炸的代码
public ActionResult Details(int PVID = 0, int PMID = 0, decimal AID = 0.00M, decimal TID =0.00M, string TyID = null, string NID = null, decimal AmID = 0.00M, decimal PID = 0.00M, string TNID = null, string INID = null, DateTime? DEID = null, decimal IBID = 0.00M, decimal PBID = 0.00M, DateTime? LMDID = null)
{
tblDenialReport tbldenialreport = db.tblDenialReport.Find(PVID, PMID, AID, TID, TyID, NID, AmID, PID, TNID, INID, DEID, IBID, PBID, LMDID);
if (tbldenialreport == null)
{
return HttpNotFound();
}
return View(tbldenialreport);
}
感谢您的帮助