[]
        
(Showing Draft Content)

C1.DataCollection.AdoNet.C1AdoNetCursorDataCollection-1

C1AdoNetCursorDataCollection<T> Class

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

Inheritance
C1AdoNetCursorDataCollection<T>
Namespace: C1.DataCollection.AdoNet
Assembly: C1.DataCollection.AdoNet.dll
Syntax
public class C1AdoNetCursorDataCollection<T> : C1CursorDataCollection<T, bool>, IDataCollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, ISupportIndexing<T>, INotifyPropertyChanged, IDisposable, ISupportVirtualization, ISupportConnection, ISupportIncrementalLoading, ISupportRefreshing, ISupportSorting, ISupportFiltering, ISupportEditing<T> where T : class?, new()
Type Parameters
Name Description
T

Constructors

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

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

Properties

Name Description
Connection

Gets the connection used to get the data.

Fields

Gets the fields that are projected in this collection.

this[int]

Gets the element at the specified index in the read-only list.

PageSize

Gets the size of the page.

TableName

Gets the name of the table the collection gets the data from.

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.

ConnectAsyncOverride(CancellationToken)

When overridden, this method is used to initialize the collection.

DetermineItemType(DbDataReader)

Determines the type of the items.

GetPageAsync(int, bool, 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.

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.