C1.DataCollection
8.0.20242.205
See the version list below for details.
dotnet add package C1.DataCollection --version 8.0.20242.205
NuGet\Install-Package C1.DataCollection -Version 8.0.20242.205
<PackageReference Include="C1.DataCollection" Version="8.0.20242.205" />
paket add C1.DataCollection --version 8.0.20242.205
#r "nuget: C1.DataCollection, 8.0.20242.205"
// Install C1.DataCollection as a Cake Addin #addin nuget:?package=C1.DataCollection&version=8.0.20242.205 // Install C1.DataCollection as a Cake Tool #tool nuget:?package=C1.DataCollection&version=8.0.20242.205
About
The ComponentOne DataCollection library includes a series of cross-platform observable collections with features like sorting, grouping and filtering and data virtualization techniques like cursor and pagination.
Commonly Used Types:
- C1.DataCollection.C1DataCollection
- C1.DataCollection.C1VirtualDataCollection
- C1.DataCollection.C1CursorDataCollection
- C1.DataCollection.C1PagedDataCollection
In-memory Data Collections
C1DataCollection is the main class used to sort, filter and group any in memory collection like lists, arrays or observable collection
var collection = new ObservableCollection<Item>();
var dc = new C1DataCollection<Item>(collection);
await dc.SortAsync("Property1", "Property2");
All the data-collections implement INotifyCollectionChanged, when a change happens in the underlying ObservableCollection, the change will be reflected and notified immediatly in the data-collection.
Similarly, the C1DataCollection can be grouped and filtered
var collection = new ObservableCollection<Item>();
var dc = new C1DataCollection<Item>(collection);
await dc.GroupAsync("Property1");
var collection = new ObservableCollection<Item>();
var dc = new C1DataCollection<Item>(collection);
await dc.FilterAsync("Property1", FilterOperation.Contains, "X");
Virtualizing Data Collections
C1VirtualDataCollection and C1CursorDataCollection are two abstract collection that can be used to implement collection whose items are pulled on demand from an external source, typically a network call.
public class YouTubeCollectionView : C1CursorDataCollection<YouTubeVideo>
{
protected override async Task<Tuple<string, IReadOnlyList<YouTubeVideo>>> GetPageAsync(int startingIndex, string pageToken, int? count = null, IReadOnlyList<SortDescription> sortDescriptions = null, FilterExpression filterExpresssion = null, CancellationToken cancellationToken = default(CancellationToken))
{
var client = new HttpClient();
var response = await client.GetAsync(youtubeUrl, cancellationToken);
var videos = new List<YouTubeVideo>();
var serializer = new DataContractJsonSerializer(typeof(YouTubeSearchResult));
var result = serializer.ReadObject(await response.Content.ReadAsStreamAsync()) as YouTubeSearchResult;
foreach (var item in result.Items)
{
videos.Add(new YouTubeVideo(item));
}
return new Tuple<string, IReadOnlyList<YouTubeVideo>>(result.NextPageToken, videos);
}
}
Composition Data Collections
There are a series of data collections that can be used to compose other collections
- C1PagedDataCollection
- C1SequenceDataCollection
- C1SelectDataCollection
- C1SelectManyDataCollection
- C1CacheDataCollection
- C1EditableDataCollection
- C1SpanDataCollection
Extensions
Built-in extensions ease the creation of data collections from know sources like EntityFrameworkCore, Ado.Net and BindingList.
Adapters
Built-in adapters are used to binding data-collections to native controls.
- C1.Win.DataCollection
- C1.WPF.DataCollection
- C1.Android.DataCollection
- C1.iOS.DataCollection
- C1.Mac.DataCollection
- C1.UWP.DataCollection
Serialization
C1.DataCollection.Serialization includes System.Text.Json converters to serialize and deserialize filter, sort and notification classes to Json.
Resources
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.1 is compatible. netstandard1.2 was computed. netstandard1.3 was computed. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Windows Phone | wpa81 was computed. |
Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 1.1
- System.Linq.Parallel (>= 4.3.0)
- System.ValueTuple (>= 4.5.0)
-
net6.0
- System.Linq.Parallel (>= 4.3.0)
-
net7.0
- System.Linq.Parallel (>= 4.3.0)
NuGet packages (77)
Showing the top 5 NuGet packages that depend on C1.DataCollection:
Package | Downloads |
---|---|
C1.DataCollection.BindingList
DataCollection.BindingList allows using any IBindingListView, including DataTable views, as the source of controls supporting C1.DataCollection. Commonly Used Types: C1.DataCollection.BindingList.C1DataCollectionBindingList |
|
C1.WPF.DataCollection
This library allow using any C1.DataCollection as the source of any WPF control by implementing ICollectionView. Commonly Used Types: C1.WPF.DataCollection.C1CollectionView C1.WPF.DataCollection.C1CollectionViewDataCollection |
|
C1.Android.Chart
FlexChart is a Cartesian chart control. Supports line, area, scatter, bubble, candle, column, bar and HLOC financial chart types. |
|
C1.Android.Grid
The ComponentOne Android FlexGrid is a fast datagrid that provides tabular data editing, sorting, filtering, grouping, and more. |
|
C1.Xamarin.Forms.Chart
FlexChart is a Cartesian chart control. Supports line, area, scatter, bubble, candle, column, bar and HLOC financial chart types. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.0.20242.202-preview | 205 | 11/9/2024 |
8.0.20242.205 | 403 | 12/11/2024 |
8.0.20242.201 | 1,845 | 11/2/2024 |
8.0.20241.197 | 2,020 | 9/3/2024 |
8.0.20241.194 | 1,795 | 7/8/2024 |
8.0.20241.192 | 5,143 | 5/29/2024 |
8.0.20233.180 | 1,156 | 1/25/2024 |
8.0.20233.177 | 785 | 11/21/2023 |
8.0.20233.176 | 388 | 11/10/2023 |
7.0.20233.175 | 6,243 | 11/9/2023 |
7.0.20233.174 | 789 | 11/8/2023 |
1.0.20232.164 | 2,205 | 8/2/2023 |
1.0.20232.161 | 7,933 | 6/20/2023 |
1.0.20231.144 | 5,240 | 5/11/2023 |
1.0.20231.129 | 3,273 | 3/24/2023 |
1.0.20231.128 | 805 | 3/24/2023 |
1.0.20231.127 | 840 | 3/24/2023 |
1.0.20223.122 | 5,510 | 3/24/2023 |
1.0.20223.121 | 45,164 | 1/18/2023 |
1.0.20223.116 | 7,727 | 11/30/2022 |
1.0.20222.109 | 8,987 | 8/31/2022 |
1.0.20222.106 | 40,818 | 7/27/2022 |
1.0.20221.66 | 11,711 | 5/5/2022 |
1.0.20221.65 | 17,167 | 3/23/2022 |
1.0.20213.62 | 16,105 | 1/11/2022 |
1.0.20213.61 | 21,645 | 11/5/2021 |
1.0.20212.59 | 12,785 | 10/14/2021 |
1.0.20212.58 | 1,450 | 9/16/2021 |
1.0.20212.57 | 14,539 | 8/5/2021 |
1.0.20211.35 | 2,430 | 5/6/2021 |
1.0.20211.34 | 13,761 | 4/6/2021 |
1.0.20203.32 | 18,651 | 11/10/2020 |
1.0.20202.28 | 9,803 | 7/29/2020 |
1.0.20201.27 | 2,971 | 6/23/2020 |
1.0.20201.25 | 12,180 | 5/21/2020 |
1.0.20201.23 | 2,996 | 3/19/2020 |
1.0.20201.14 | 8,158 | 3/19/2020 |
1.0.20201.8-beta | 1,427 | 2/13/2020 |
1.0.20201.7-beta | 1,417 | 1/28/2020 |
1.0.20201.4-beta | 1,516 | 12/11/2019 |
1.0.20201.3-beta | 2,576 | 12/3/2019 |