Reputation: 434
We calculate the no. of db queries in ASP.NET application by searching for ".fill(" or ".execute" and then looking for the query/stored proc.
What is the way we can find the no. of db queries in an MVC application?
This is as part of application analysis...
Upvotes: 1
Views: 92
Reputation: 9664
Search for "DbContext" in the entire solution.
This will take you to the controller.
Within the Method inheriting from dbcontext, you get name of all the DbSets.
Then you can search for each "DbSetName" which will lead you to the LINQ query!
Upvotes: 1
Reputation: 7374
I don't know much about your application but I would try to do the following:
Upvotes: 1