linq查询和ado实体框架+Visual Studio 2010
我使用了 ado 实体数据模型并将其添加到我的 Web 应用程序中。当我想调试的时候 使用断点,我看不到查询的数据,只能看到对模型的引用。
I used an ado entity data model and added it to my web application. When I want to debug
with breakpoints, I can't see the data of the query, only a reference to the model.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您没有通过迭代结果来执行查询(例如使用
foreach
或ToList
),那么这是预期的。所做的只是
设置最终可以执行并生成查询结果的代码,但直到您如上所述迭代
query
时才会生成结果。除此之外,你没有给我们太多的帮助。
If you haven't executed the query by iterating over the results (e.g. using
foreach
orToList
) then this is expected.All that
does is set up code that can eventually be executed and produce the results of the query but it doesn't produce the results until you iterate over
query
as above.Beyond that, you haven't given us much to go on.