Hi,
I'm running profiler tools on the LINQ-to-SQL data access layer.
A lot of the time is spent on GetTable<clsName>()
because it's being called each time i CRUD data.
Is it possible to cache GetTable<clsName>()
for all the tables when the application starts or serve it through some sort of repository where it will be in memory?
Thank you
Edit: Alternatively, is there a way to avoid using GetTable<> ?