Switch ProxyCreation to EF7 in a new configuration

So, in EF6, you can disable proxy creation, for example:

this.Configuration.ProxyCreationEnabled = false; 

From what I could find, the configuration diagram in EF7 has changed, but I can’t find anything about how to do this. I went through https://docs.efproject.net/en/latest/miscellaneous/configuring-dbcontext.html and even analyzed the DbContextOptionsBuilder object, but did not find anything on it.

Am I going about the wrong way or is there something missing? Thanks in advance.

+5
source share
1 answer

EF7 EF Core 1.0 does not create a proxy server, so there is no configuration option for this. See https://github.com/aspnet/EntityFramework/issues/997

+7
source

Source: https://habr.com/ru/post/1245779/


All Articles