DataCollection | ComponentOne
C1.DataCollection.EntityFrameworkCore Assembly / C1.DataCollection.EntityFrameworkCore Namespace / C1EntityFrameworkCoreVirtualDataCollection<T> Class / C1EntityFrameworkCoreVirtualDataCollection<T> Constructor
The database session used as source for the collection.
The maximum number of pages that will be requested concurrently. If 1 is specified, the pages will be fetched one after the other. Avoid setting a big number to prevent saturating the server with too many requests.
The maximum number of pages that will be executing, or waiting. When this number is surpassed the oldest requested pages will be cancelled. The value of this parameter must be greater than maxParallelRequests.
The delay before requesting a page. When this parameter is greater than zero, it helps avoid bursts of page requests, typically caused by scrolling down operations.

In This Topic
    C1EntityFrameworkCoreVirtualDataCollection<T> Constructor
    In This Topic
    Initializes a new instance of the C1EntityFrameworkCoreVirtualDataCollection<T> class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal context As DbContext, _
       Optional ByVal maxParallelRequests As Integer, _
       Optional ByVal maxActiveRequests As Integer, _
       Optional ByVal requestDelay As Nullable(Of TimeSpan) _
    )
    public C1EntityFrameworkCoreVirtualDataCollection<T>( 
       DbContext context,
       int maxParallelRequests,
       int maxActiveRequests,
       Nullable<TimeSpan> requestDelay
    )

    Parameters

    context
    The database session used as source for the collection.
    maxParallelRequests
    The maximum number of pages that will be requested concurrently. If 1 is specified, the pages will be fetched one after the other. Avoid setting a big number to prevent saturating the server with too many requests.
    maxActiveRequests
    The maximum number of pages that will be executing, or waiting. When this number is surpassed the oldest requested pages will be cancelled. The value of this parameter must be greater than maxParallelRequests.
    requestDelay
    The delay before requesting a page. When this parameter is greater than zero, it helps avoid bursts of page requests, typically caused by scrolling down operations.
    See Also