Albatross.DateLevel
7.5.9-13.main
Prefix Reserved
dotnet add package Albatross.DateLevel --version 7.5.9-13.main
NuGet\Install-Package Albatross.DateLevel -Version 7.5.9-13.main
<PackageReference Include="Albatross.DateLevel" Version="7.5.9-13.main" />
<PackageVersion Include="Albatross.DateLevel" Version="7.5.9-13.main" />
<PackageReference Include="Albatross.DateLevel" />
paket add Albatross.DateLevel --version 7.5.9-13.main
#r "nuget: Albatross.DateLevel, 7.5.9-13.main"
#:package Albatross.DateLevel@7.5.9-13.main
#addin nuget:?package=Albatross.DateLevel&version=7.5.9-13.main&prerelease
#tool nuget:?package=Albatross.DateLevel&version=7.5.9-13.main&prerelease
Albatross DateLevel
Date level data is a series of data with start date and end date. This api provides functionality to insert, update and delete data within a series of data.
Overview
The date level entity class DateLevelEntity has a StartDate and an EndDate property. It can also have a Key property to seperate multiple series of data stored within the same list. Data with the same key will be considered as the same series of data.
In order to organize data in date series, the following rules apply. 1. the dates should not overlap 2. the dates should not have gaps
Use extension methods in the DateLevelEntityExtensions class to manipulate DateLevel collections.
SetDateLevel<T>(this IEnumerable<T> collection, T src, Func<T, T, bool> isSameSeries)will insert a date level entitysrcto thecollection. If an item in the collection is not the same series as the input fieldsrc, it would be ignored and returned without any processing. For data of the same series, the method will apply the value ofsrcto the series, therefore overwriting the value of the series between the start date and end date ofsrcwith its value. If the dates ofsrcproduces a gap in the date series, anArgumentExceptionwill be thrown but the resulting data would still be correct. The method usesyield returninternally and is therefore lazy. The method has a time complexity of O(n).SetDateLevel<T, K>(this IEnumerable<T> collection, T src)does the same thing with a builtinisSameSeriesmethod since it has an additional generic parameter for theKey.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 was computed. 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 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|