[]
        
(Showing Draft Content)

C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection-1

C1AdoNetVirtualDataCollection<T> Class

Virtual collection whose data is extracted from a Ado.Net DbConnection.

Inheritance
C1AdoNetVirtualDataCollection<T>
Namespace: C1.DataCollection.AdoNet
Assembly: C1.DataCollection.AdoNet.dll
Syntax
public class C1AdoNetVirtualDataCollection<T> : C1VirtualDataCollection<T>, IDataCollection<T?>, IReadOnlyList<T?>, IReadOnlyCollection<T?>, IEnumerable<T?>, IEnumerable, INotifyCollectionChanged, ISupportIndexing<T?>, INotifyPropertyChanged, IDisposable, ISupportVirtualization, ISupportRefreshing, ISupportConnection, ISupportAsyncLoading<T>, ISupportSorting, ISupportFiltering, ISupportEditing<T> where T : class
Type Parameters
Name Description
T

Constructors

Name Description
C1AdoNetVirtualDataCollection(DbConnection, string, IEnumerable<string>?, int, int, TimeSpan?)

Initializes a new instance of the C1AdoNetVirtualDataCollection<T> class.

Methods

Name Description
CanFilter(FilterExpression?)

Returns whether the collection is able to filter the specified filterExpression.

CanInsert(int, T)

Determines whether a new item can be inserted in the collection at the specified index.

CanRemove(int)

Determines whether the item at the specified index can be removed from the collection.

CanReplace(int, T)

Determines whether the item at the specified index can be replaced in the collection.

CanSort(params SortDescription[])

Returns whether the collection is able to sort the specified sortDescriptions.

DetermineItemType(DbDataReader)

Determines the type of the items.

GetPageAsync(int, int, int, IReadOnlyList<SortDescription>?, FilterExpression?, CancellationToken)

When overridden in an inherited class it returns the items in the page as well as a token to the next page.

InsertAsyncOverride(int, T, CancellationToken)

This method is called when an item is inserted in the collection.

OnResetting()

Called before the cache is reset.

RemoveAsyncOverride(int, CancellationToken)

This method is called when an item is removed from the collection.

ReplaceAsyncOverride(int, T, CancellationToken)

This method is called when an item is replaced in the collection.