pmn
pmn

Reputation: 2257

Connection Pooling in Entity Framework 6

I read an article about Connection pooling in Entity Framework4, it said that :

connection pooling is OFF in EF4 by default!

I want to know Connection pooling is ON in Entity Framework6 by default? if it's OFF, how can turn it ON?

Upvotes: 0

Views: 2787

Answers (1)

walther
walther

Reputation: 13600

No, it is NOT turned off by default. You can try it yourself, simply create a new Entity Model and check the connection string it produces. Not sure how Mr. McClure got to his problem, but it is not the standard behavior. I've tested it with VS 2012 and 2013. I'm really not sure why would VS 2010 he was using behave differently, but who knows. The older version of VS might be the cause...

Anyway, the fix for such behavior would be to simply delete the part that says Pooling=False;

Upvotes: 1

Related Questions