ToolBX.Unicity
1.0.0
See the version list below for details.
dotnet add package ToolBX.Unicity --version 1.0.0
NuGet\Install-Package ToolBX.Unicity -Version 1.0.0
<PackageReference Include="ToolBX.Unicity" Version="1.0.0" />
paket add ToolBX.Unicity --version 1.0.0
#r "nuget: ToolBX.Unicity, 1.0.0"
// Install ToolBX.Unicity as a Cake Addin
#addin nuget:?package=ToolBX.Unicity&version=1.0.0
// Install ToolBX.Unicity as a Cake Tool
#tool nuget:?package=ToolBX.Unicity&version=1.0.0
Unicity
Extensions for auto-incremented IDs in non-database settings.
Gettings started
In order to work, your classes must implement the IAutoIncrementedId<T> interface.
The following extension method should then become available :
var nextId = items.GetNextAvailableId();
var newItem = new Item { Id = nextId, ... };
The above should always be used in order to avoid duplicate Ids. You can also use the following method to ensure that your collection does not have duplicates :
if (items.ContainsDuplicateIds())
throw new Exception("We have duplicates! Please panic!");
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 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. |
-
net6.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on ToolBX.Unicity:
Package | Downloads |
---|---|
ToolBX.Spritebound
Spritesheet and animation management for sprite-based projects. |
|
ToolBX.SimpleRepositories
Base classes and interfaces for setting up simple repositories. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.2.0 | 330 | 1/11/2024 |
2.2.0-beta1 | 139 | 11/18/2023 |
2.1.0 | 301 | 5/4/2023 |
2.1.0-beta3 | 115 | 4/29/2023 |
2.1.0-beta2 | 88 | 4/28/2023 |
2.1.0-beta1 | 100 | 4/28/2023 |
2.0.2 | 189 | 4/28/2023 |
2.0.1 | 218 | 4/24/2023 |
2.0.0 | 438 | 11/9/2022 |
2.0.0-beta1 | 170 | 10/2/2022 |
1.0.2 | 1,790 | 10/2/2022 |
1.0.1 | 359 | 9/6/2022 |
1.0.0 | 1,419 | 5/23/2022 |