简体   繁体   English

监视窗口不显示 EntityFramework 代理的属性

[英]Watch Window doesn't display properties of EntityFramework proxies

The watch window in Visual Studio 2019 has worked fine until yesterday (I believe my laptop may have rebooted over night due to an update pushed by sys admins). Visual Studio 2019 中的监视窗口一直工作到昨天为止(我相信我的笔记本电脑可能由于系统管理员推送的更新而在夜间重新启动)。

Now, when I set a breakpoint and try to evaluate the properties of an entity, the entity proxy doesn't display the properties (or values):现在,当我设置断点并尝试评估实体的属性时,实体代理不显示属性(或值):

VS 2019 Watch window with blank properties具有空白属性的 VS 2019 Watch 窗口

The Watch is aware of the number of properties as it lists an icon for each, but the property names and values are blank. Watch 知道属性的数量,因为它为每个列出了一个图标,但属性名称和值是空白的。 Also, if I type the property name directly (eg detail.Asset.Id) it will display the value.此外,如果我直接键入属性名称(例如 detail.Asset.Id),它将显示值。

Has anyone seen this?有没有人看到这个? know the cause?知道原因吗? and/or know how to fix?和/或知道如何修复?

修复/重新启动似乎已修复它。

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

相关问题 Xamarin.Forms 没有找到 EntityFramework.Core 的迁移 - Xamarin.Forms doesn't find migrations of EntityFramework.Core 反向导航阴影属性和代理 - Inverse navigation shadow properties and proxies EntityFramework Core Database.EnsureCreated不会创建数据库 - EntityFramework Core Database.EnsureCreated doesn't create database EntityFramework7 - 约定,属性和配置 - EntityFramework7 - Conventions, Properties and Configurations 您的目标项目“XXX”没有引用 EntityFramework。 这个包是必需的 - Your target project 'XXX' doesn't reference EntityFramework. This package is required EntityFramework 核心:当集合被继承 class 时,清除集合不会正确反映在数据库中 - EntityFramework Core: Clearing collection doesn't not reflect propertly in database when collection is inherited class EntityFramework Core 在结果中包含多级导航属性 - EntityFramework Core including multilevel navigation properties in results SelectMany 不适用于 cosmosDb 的子属性? - SelectMany doesn't work on cosmosDb for child properties? DbSet.Find() 不适用于 Guid 属性 - DbSet.Find() doesn't work for Guid properties 实体框架 ThenInclude 不包括孙子的属性 - Entity Framework ThenInclude doesn't include properties of the grandchild
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM