Globally Opt of out Tracking, but opt in for just one Entity
See original GitHub issueThis is related to ticket #26135 . This ticket was closed prematurely before giving me the complete/correct answer. Please do not mark this ticket as a duplicate and close it without answering my question.
In the ticket #26135, @ErikEJ says Use the OnConfiguringPartial method in a partial class.
.
But there is no OnConfiguringPartial method. I am using EF Core 5.
I would like to set UseQueryTrackingBehavior by adding a Partial class for my DBContext. But OnConfiguring() is not a partial method of DbContext, and there is no OnConfiguringPartial method. So how can I do it without having to subclass my DbContext (that was created using Scaffolding)?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Globally Opt of out Tracking, but opt in for just one Entity
In one of our solutions, we update only one table. All the other tables are read-only. So instead of having to modify all...
Read more >Control Tracking Opt-In Preferences in Account Engagement
If a prospect hasn't opted in, page views and form views aren't tracked. Email link clicks and form submissions still appear in their...
Read more >The Difference Between Opt-In and Opt-Out Principles In Data ...
Opt -in and opt-out are approaches to data privacy on which the two main trends in data protection laws are based. They describe...
Read more >Opt-in vs. opt-out approaches to personal information ...
This article looks at opt-in and opt-out approaches in U.S. state privacy legislation.
Read more >GTMTips: Opt-out Of Google Analytics Tracking
The trick is to set a global variable before the first GA tag fires on the page. This is crucial, because the global...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://docs.microsoft.com/en-us/ef/core/dbcontext-configuration/#dbcontextoptions
https://docs.microsoft.com/en-us/ef/core/dbcontext-configuration/#dbcontextoptions-versus-dbcontextoptionstcontext
@geetmenon I’m sorry you don’t find the documentation satisfactory - we’d appreciate any concrete suggestions on how to improve them.
In any case, it seems like you have found a satisfactory solution to your problem, so I’ll go ahead and close this issue. If you have any further questions don’t hesitate to ask.