[]
Cursor collection whose data is extracted from a Ado.Net DbConnection.
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()
| Name | Description |
|---|---|
| T |
| Name | Description |
|---|---|
| C1AdoNetCursorDataCollection(DbConnection, string, IEnumerable<string>?, int) | Initializes a new instance of the C1AdoNetCursorDataCollection<T> class. |
| 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. |
| Name | Description |
|---|---|
| CanFilter(FilterExpression?) | Returns whether the collection is able to filter the specified |
| CanInsert(int, T) | Determines whether a new item can be inserted in the collection at the specified |
| CanRemove(int) | Determines whether the item at the specified |
| CanReplace(int, T) | Determines whether the item at the specified |
| CanSort(params SortDescription[]) | Returns whether the collection is able to sort the specified |
| 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. |