I'm facing a strange problem with my website that it doesn't seem to be using the connection pooling. I am using linq to sql to call stored procs and return the list of items but not sure if its closing the connections/disposing the data context class or not.
my code looks like this
public list<data.dto.category> getall()
{
var db = new mydatacontext();
return db.getCategories().ToList();
}
how do I make sure that I am closing the connections??
Thanks