问题
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