Scaffold-DbContext not generating virtual navigation properties (EF Core 2.1)

不打扰是莪最后的温柔 提交于 2019-12-24 00:05:29

问题


I am using EF Core 2.1 database-first.
I use Scaffold-DbContext to create/update my models (the .cs files)

I want to enable lazy-loading, and I have added .UseLazyLoadingProxies() in my Startup.cs

Now, how do I get Scaffold-DbContext to generate virtual navigation properties?

来源:https://stackoverflow.com/questions/50827976/scaffold-dbcontext-not-generating-virtual-navigation-properties-ef-core-2-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!