LinqConnect Documentation
Devart.Data.Linq Namespace / DataContext Class / MaxUsedConnections Property

In This Topic
    MaxUsedConnections Property
    In This Topic
    Gets or sets the maximal number of opened connections.
    Syntax
    'Declaration
     
    Public Property MaxUsedConnections As Integer
    public int MaxUsedConnections {get; set;}

    Property Value

    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

    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

    See Also