Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/knourian/sequential-guid

NuGet Package to generate SQL Server Friendly Sequential Guid
https://github.com/knourian/sequential-guid

csharp guid netcore nuget nuget-package sequenctial-guid

Last synced: 3 days ago
JSON representation

NuGet Package to generate SQL Server Friendly Sequential Guid

Awesome Lists containing this project

README

        

# Sequential-Guid

NuGet Package to generate SQL Server Friendly Sequential Guid

## Usage

1. Get Next Guid

```csharp
using SequentialGuid;

public void ExampleMethod()
{
var guid = GuidInstance.Next();
}
```

2. Get Current Guid

```csharp
using SequentialGuid;

public void ExampleMethod()
{
var guid = GuidInstance.GetCurrentGuid();
}
```

3. Seed First Guid

```csharp
using SequentialGuid;

public void ExampleMethod()
{
var guid = GuidInstance.SetSeed(Guid.NewGuid());
}
```