4
What is the purpose of disabling this feature?
4
What is the purpose of disabling this feature?
4
Proxies are required for two resources:
Both techniques have other requirements:
https://stackoverflow.com/questions/6198563/entity-framework-proxy-creation
1
At first I see no purpose (benefit) at all, unless you want to work in an environment that does not need a tracking or want to do it manually.
A point that could be useful would be a case that you need only read the data, in that senario do the tracking would not have sense it would serve more at the time of persisting the information, then you could be using EF to read the information and use Dapper to persist for example, or a read in a Read Only database. In those rooms you’d have a better idea.
It is necessary to understand that the proxy represents an instance that has not yet been populated with database data, but only knows its own ID. Whenever a property that is mapped to the database is accessed, the proxy subclass will execute the database load so that the load is transparent to the client’s code.
Browser other questions tagged entity-framework entity-framework-6 entity-framework-core
You are not signed in. Login or sign up in order to post.
Thanks for the explanation, I had read the link you passed but it was not clear
– Peres