question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Globally Opt of out Tracking, but opt in for just one Entity

See original GitHub issue

This 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
rojicommented, Sep 23, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found