NetEvolve.SequentialGuid
1.1.95
See the version list below for details.
dotnet add package NetEvolve.SequentialGuid --version 1.1.95
NuGet\Install-Package NetEvolve.SequentialGuid -Version 1.1.95
<PackageReference Include="NetEvolve.SequentialGuid" Version="1.1.95" />
paket add NetEvolve.SequentialGuid --version 1.1.95
#r "nuget: NetEvolve.SequentialGuid, 1.1.95"
// Install NetEvolve.SequentialGuid as a Cake Addin #addin nuget:?package=NetEvolve.SequentialGuid&version=1.1.95 // Install NetEvolve.SequentialGuid as a Cake Tool #tool nuget:?package=NetEvolve.SequentialGuid&version=1.1.95
NetEvolve.SequentialGuid
A .NET library to generate sequential GUIDs, similar to SQL Server's newsequentialid()
.
It's a drop-in replacement for System.Guid.NewGuid()
, focusing on performance and low allocation.
[!CAUTION] The downside is that it's not as unique as
System.Guid.NewGuid()
and crypotographically insecure. So be sure to understand the trade-offs before using it.
Features
With the SequentialGuidType
enum, you can choose between 3 different types of sequential GUIDs:
AsBinary
<br/>The sequential part is at the beginning of the GUID, similar to Oracle'sSYS_GUID()
.AsString
(Default)<br/>The sequential part is at the beginning of the GUID.AtEnd
<br/>The sequential part is at the end of the GUID, similar to SQL Server'snewsequentialid()
.
Installation
dotnet add package NetEvolve.SequentialGuid
Usage
using NetEvolve.SequentialGuid;
Guid guid = SequentialGuidFactory.NewGuid(); // Default is SequentialGuidType.AsString
// or
Guid guid = SequentialGuidFactory.NewGuid(SequentialGuidType.AsBinary);
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 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 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. |
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on NetEvolve.SequentialGuid:
Package | Downloads |
---|---|
NetEvolve.Http.Correlation.Abstractions
Abstractions for the uniform use of Http.Correlation. Based on the primary Http header `X-Correlation-ID` as well as the alternative Http header `X-Request-ID`. |
|
NetEvolve.Http.Correlation.AspNetCore
Implementation of AspNetCore middleware to use Http.Correlation. Based on the primary Http header `X-Correlation-ID` as well as the alternative Http header `X-Request-ID`. |
|
NetEvolve.Http.Correlation.TestGenerator
Implementation of an IHttpCorrelationIdProvider for test cases. Based on the primary Http header `X-Correlation-ID` as well as the alternative Http header `X-Request-ID`. |
|
NetEvolve.Http.Correlation.HttpClient
Implementation of Http correlation handler to forward CorrelationId. Based on the primary Http header `X-Correlation-ID` as well as the alternative Http header `X-Request-ID`. |
|
NetEvolve.Http.Correlation.Ulid
Implementation of an IHttpCorrelationIdProvider based on NuGet package `Ulid`. |
GitHub repositories
This package is not used by any popular GitHub repositories.