-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we be treating objects created by the user in a query differently from the ones we materialize? #12668
Comments
As @divega says it is ok not to track this kind of action for the user because, in my case i only use this in So in my case you should not treat the object created by the user in a query differently from the ones you materialize. And it's quite strange you treat it differently because i query Entity Without AsNoTracking
With AsNoTracking
|
@smitpatel to cleanup. |
We decided in meeting that, we will track entities in result if and only if they are created through materialization pipeline. Anything else we don't track. |
Currently we have an implicit assumption that if a user writes to code to explicitly create instances of a mapped type, it is ok not to track it.
Creating this issue to have an opportunity to (re)discuss if this what we want, and how it plays with different features, present and future, like shadow properties and customer materialization through factory methods, etc.
The text was updated successfully, but these errors were encountered: