I have a web application that creates a DataContext at the beginning of a query and lets go to the end.
I would like to have convenient statistics for each page, for example
- the number of inserts and the time spent
- the number of deletions and the time spent
- the number of updates and the time spent
- the number of selected and spent time
I set it all up for insertions / updates / deletes by implementing the partial InsertXXX / UpdateXXX / DeleteXXX methods and tracking the number of samples and the time spent.
But how do I count SELECTs time
I'm not sure if there is a hook anywhere in Linq to SQL to insert some dimensions?
thanks
source
share