更新时间:2023-01-17 21:19:45
方法"GetAllClaimRegistrationRecords()"已经返回"List< tblclaimregistration>".类型.
因此,您不需要询问ToList()...
那就做吧:
The method "GetAllClaimRegistrationRecords()" already return a "List<tblclaimregistration>" type.
So you doesn''t need to ask for ToList()...
Just do it :
List<tblClaimRegistration> ClaimRegistartion= svc.GetAllClaimRegistrationRecords()
我得到了解决方案:
i got the solution :
[HttpPost]
public ActionResult ToControl()
{
ServiceReference1.Service1Client svc = new ServiceReference1.Service1Client();
ViewData["ClaimRegistartion"] = svc.GetAllClaimRegistrationRecords();
return View("TestView");
}
它将起作用.
it will work.
无法将类型为'System.Linq.EnumerableQuery的对象转换为类型为'Microsoft.Azure.Documents.Linq.IDocumentQuery的对象
无法将类型'Newtonsoft.Json.Linq.JObject'隐式转换为'System.Collections.Generic.IEnumerable< Employee>'
javax.el.ELException:无法将类型为类java.lang.String的abcCache转换为类java.lang.Class
java.lang.RuntimeException:无法反序列化对象.无法将类型java.lang.Long的值转换为布尔值
JSF java.lang.IllegalArgumentException:无法将类型为java.lang.Integer的5个类型转换为class