NetEvolve.SequentialGuid 1.1.95

There is a newer version of this package available.
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                
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="NetEvolve.SequentialGuid" Version="1.1.95" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetEvolve.SequentialGuid --version 1.1.95                
#r "nuget: NetEvolve.SequentialGuid, 1.1.95"                
#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.
// 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

Nuget Nuget

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's SYS_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's newsequentialid().

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last updated
1.1.97 315 9/16/2024
1.1.95 126 9/12/2024
1.1.85 1,054 8/26/2024
1.1.30 1,818 5/23/2024
1.1.19 189 5/21/2024
1.1.5 1,038 4/8/2024
1.1.0 816 4/4/2024
1.0.1 386 4/2/2024