[]
        
(Showing Draft Content)

C1.DataCollection.EntityFrameworkCore.C1EntityFrameworkCoreVirtualDataCollection-1

C1EntityFrameworkCoreVirtualDataCollection<T> Class

This collection allows showing and modifying a Microsoft.EntityFrameworkCore.DbContext instance in any control.

Inheritance
C1EntityFrameworkCoreVirtualDataCollection<T>
Namespace: C1.DataCollection.EntityFrameworkCore
Assembly: C1.DataCollection.EntityFrameworkCore.dll
Syntax
public class C1EntityFrameworkCoreVirtualDataCollection<T> : C1EntityFrameworkCoreVirtualDataCollectionBase<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
Remarks

The collection supports asynchronous loading of data, sorting, filtering and editing.

Constructors

Name Description
C1EntityFrameworkCoreVirtualDataCollection(DbContext, int, int, TimeSpan?)

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

C1EntityFrameworkCoreVirtualDataCollection(IQueryable<T>, int, int, TimeSpan?)

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

Methods

Name Description
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.

InsertAsyncOverride(int, T, CancellationToken)

Inserts the specified item at the end of the collection. The index is ignored.

RemoveAsyncOverride(int, CancellationToken)

Removes the item at the specified index from the collection.

ReplaceAsyncOverride(int, T, CancellationToken)

Replaces the item at the specified index by the specified item.