I have a situation where a plugin is querying and getting some data, I cannot change the query in plugin as its a DLL. I have checked with the SQL profiler what query it is making and as per our requirement we have changed the database schema in that area, hence breaking that plugin query.
Is there any way to intercept the query and alter it?
Just like how we do in JS framework like Angular that we have interceptor to receive each call and add token in the header, do we have something like that to intercept all outgoing SQL calls and alter it?
Maybe middleware can work here as I am in .NET-Core or some kind of handler?