【发布时间】:2016-10-13 13:16:09
【问题描述】:
我想知道我们何时将关键字 virtual 与导航属性一起使用(我知道它是为了延迟加载),但我正在阅读 https://docs.asp.net/en/latest/data/ef-mvc/intro.html 中的教程,该教程创建了一个 asp.net Web 应用程序核心,但他们没有使用那个虚拟了。 我检查了旧版本(MVC4、MVC5),它总是在那里,但不在核心中。 谁能给我解释一下为什么?
【问题讨论】:
标签: asp.net-core visual-studio-2015 asp.net-core-mvc entity-framework-core lazy-loading