See Also

DataContext Class  | DataContext Members

Requirements

Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7

Language

Visual Basic

C#

Show All

See AlsoLanguagesDevart.Data.LinqSend comments on this topic.

MaxUsedConnections Property

Devart.Data.Linq Namespace > DataContext Class : MaxUsedConnections Property

Gets or sets the maximal number of opened connections.

[Visual Basic]
Public Property MaxUsedConnections As Integer
[C#]
public int MaxUsedConnections {get; set;}

Return Type

The maximal number of opened connections.

Remarks

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.

Requirements

Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7

See Also

DataContext Class  | DataContext Members

 

 


© 2010 - 2013 Devart. All Rights Reserved.