Why, oh why is pooling turned off in Entity Framework 4.0 with Visual Studio 2010 - More Wally - Wallace B. McClure
in

MoreWally.com

Giving people what they want, More Wally. This is the technical and personal blog site of
Wallace B. (Wally) McClure.

This Blog

Syndication

News

Please goy buy 3-4 copies of my book on MonoTouch titled "Professional Android Programming with Mono for Android for .NET/C# Developers." They make great gifts all year round. Plus, I get about $.25 when you buy a copy.

Technical Sites

More Wally - Wallace B. McClure

This blog will have all kinds of posts about Wally McClure. In it, there will be tons of .NET and computer programming posts as well as Wally's views on life in general. As you might guess, this site and blog help you get More Wally in your life. What more could anyone want? iPhone, Android, MonoTouch, MonoDroid, Mobile, HTML5, .NET, ADO.NET, ASP.NET, AJAX, jQuery, jQuery Mobile, ASP.NET AJAX, and Windows Azure............follow me on twitter at Wally

Why, oh why is pooling turned off in Entity Framework 4.0 with Visual Studio 2010

I've been working and playing with EF4 ever since it shipped.  I'm really excited by what I see in it.  I started digging into the web.config to see what all is involved with it.  Unfortunately, when I found the entry in the web.config, I was horrified by what I saw.  Here's the line:

<add name="AppEntities" connectionString="metadata=res://*/App_Code.AppModel.csdl|res://*/App_Code.AppModel.ssdl|res://*/App_Code.AppModel.msl;
provider=System.Data.SqlClient;provider connection string=
&quot;Data Source=.;
Initial Catalog=Example;Integrated Security=True;Pooling=False;
MultipleActiveResultSets=True
&quot;" providerName="System.Data.EntityClient"/>

WTH is this?  Why in the world would I want to turn off my connection pooling?  Seems like a really bad idea to me.  It ends up that this, and other options are from the setup.  When you choose a connection in Visual Studio 2010, the connection is drawn from the Visual Studio 2010's connection string.  Apparently, Visual Studio 2010 turns off connection pooling, I did not know that.  Also, you probably don't want to use Integrated Security for your production apps, only for demos.  These are a couple of things to look at when you setup your apps.

Published Nov 01 2010, 06:03 PM by wallym
Filed under:

Comments

No Comments
2006 - Wallace B. McClure
Powered by Community Server (Non-Commercial Edition), by Telligent Systems