In my asp.net mvc 2 app I have an action which is rather data-heavy. I’m using linq-to-sql for the queries, while using the repository pattern.
When I check the execution of the action in SQL Server profiler, I find that approximately 60 queries are being executed. My question is – and I hope there is enough infomation in the question to answer it – does asp.net mvc make a full round trip, back and fourth, to the database, for each and every query, or is it that because of the use of linq, there is actually only one round trip ?
In my asp.net mvc 2 app I have an action which is rather data-heavy.
Share
It depends on what your Linq looks like. It’s my understanding that when your result set enumerates you will hit the database.