我想Stored Procedure
查询
var labratorySerialFinalResult = repository.UoW.Orm.Database.SqlQuery<SPLabratorySerialFinalResult>("EXECUTE LabratorySerialFinalResult @OrderNo='" + project.OrderNumber + "'")
并使用如下结果:
var result = projSerials.Where(x =>!labratorySerialFinalResult.Any(v => v.SerialNo == x.SerialNo)
.Union(labratorySerialFinalResult.Where(c => c.FinalResult == "Reject");
但是让我遇到以下异常:
Unable to create a constant value of type SPLabratorySerialFinalResult Only primitive types or enumeration types are supported in this context.