简体   繁体   English

VS2015 Watch LINQ var错误:函数评估需要运行所有线程

[英]VS2015 Watch LINQ var Error: The function evaluation requires all threads to run

I have the simplest of LINQ queries; 我有最简单的LINQ查询; just testing out some database connections in my app: 只测试我的应用程序中的一些数据库连接:

public IHttpActionResult Get()
{
    var a = from c in Context.AspNetUsers where c.Id == 1 select c;
    return Ok();
}

When I break at the return and place a watch on 'a', then attempt to inspect the result, I get the error: 当我在返回时打破并将手表放在'a'上,然后尝试检查结果,我得到错误:

"The function evaluation requires all threads to run" “功能评估需要所有线程运行”

This only happens under VS2015 . 这只发生在VS2015下 If I run under VS2013, I am able to inspect the result as I would expect. 如果我在VS2013下运行,我能够按照我的预期检查结果。

When I query for a single result as in: 当我查询单个结果时,如:

    public IHttpActionResult Get()
    {
        var a = (from c in Context.AspNetUsers where c.Id == 1 select c).FirstOrDefault();
        return Ok();
    }

Then I don't get the error, regardless of VS version. 然后我不会得到错误,无论VS版本。

Is there an option setting somewhere that I have missed, or is this some known issue in VS2015? 是否存在我错过的选项设置,或者这是VS2015中的一些已知问题?

"a" is essentially a query, or task - to invoke that query and get some data you need to call something that puts the data from that query in an object. “a”本质上是一个查询或任务 - 调用该查询并获取一些数据,这些数据需要调用将该查询中的数据放入对象的内容。 So ToArray() or ToList() or something like that. 所以ToArray()或ToList()或类似的东西。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 功能评估需要运行所有线程 - The function evaluation requires all threads to run 什么是 function 评估需要所有线程运行? - What is the function evaluation requires all threads to run? 调试器监视窗口中的VS2015 LINQ - VS2015 LINQ in debugger watch window 调试期间的 Visual Studio:function 评估需要所有线程运行 - Visual Studio during Debugging: The function evaluation requires all threads to run 虚拟列表 <T> :“功能评估需要所有线程运行” - virtual List<T> :“The function evaluation requires all threads to run” 懒 <T> :“功能评估需要所有线程运行” - Lazy<T>: “The function evaluation requires all threads to run” ASP.NET MVC或更多VS调试问题-EF / Sql函数评估要求所有线程都运行[保持] - ASP.NET MVC or more of a VS debugging issue - EF/ Sql The function evaluation requires all threads to run [on hold] 如何在没有“函数求值要求所有线程都运行”的情况下在后台调用方法 - How can I call a method in the background without “The function evaluation requires all threads to run” EntityFramework中的SaveChanges()不保存更改。 显示“函数评估要求所有线程都运行” - SaveChanges() in EntityFramework not saving changes. Showing “The function evaluation requires all threads to run” 使用 Cosmos ExecuteQuery 查询 azure 表存储时,为什么会出现“function 评估需要所有线程运行”? - Why do i get "The function evaluation requires all threads to run" when querying an azure table storage with Cosmos ExecuteQuery?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM