'Declaration Public Property MaxUsedConnections As Integer
public int MaxUsedConnections {get; set;}
'Declaration Public Property MaxUsedConnections As Integer
public int MaxUsedConnections {get; set;}
When working with the database servers that does not support several opened cursors with the IDataReader interface per connection simultaneously, a new connection is created for each LINQ query. (This does not occur if the transaction is used). This property allows to limit count of simultaneously opened connections. If the application needs to open a new connection, exceeding this limit, data from existing opened cursors is loaded to cache, and then their connections are closed.
This property allows integer values more or equal to 1. It can be set at any time for existing DataContext.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2