Albatross.DateLevel 7.5.9-13.main

Prefix Reserved
This is a prerelease version of Albatross.DateLevel.
This package has a SemVer 2.0.0 package version: 7.5.9-13.main+8f3f332.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Albatross.DateLevel --version 7.5.9-13.main
                    
NuGet\Install-Package Albatross.DateLevel -Version 7.5.9-13.main
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Albatross.DateLevel" Version="7.5.9-13.main" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Albatross.DateLevel" Version="7.5.9-13.main" />
                    
Directory.Packages.props
<PackageReference Include="Albatross.DateLevel" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Albatross.DateLevel --version 7.5.9-13.main
                    
#r "nuget: Albatross.DateLevel, 7.5.9-13.main"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Albatross.DateLevel@7.5.9-13.main
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Albatross.DateLevel&version=7.5.9-13.main&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Albatross.DateLevel&version=7.5.9-13.main&prerelease
                    
Install as a Cake Tool

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 entity src to the collection. If an item in the collection is not the same series as the input field src, it would be ignored and returned without any processing. For data of the same series, the method will apply the value of src to the series, therefore overwriting the value of the series between the start date and end date of src with its value. If the dates of src produces a gap in the date series, an ArgumentException will be thrown but the resulting data would still be correct. The method uses yield return internally 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 builtin isSameSeries method since it has an additional generic parameter for the Key.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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