Skip to content

Commit d479b3d

Browse files
committed
update target frameworks to include net9.0 and add specific package references; enhance README for clarity on ID generation features
1 parent fc6946d commit d479b3d

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

ObjectIdentity/ObjectIdentity.csproj

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net6.0;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net9.0;net8.0;net6.0;netstandard2.0</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
66
<Nullable>enable</Nullable>
77
<PackageId>ObjectIdentity</PackageId>
@@ -35,6 +35,11 @@
3535
<DefineConstants>NET8_0</DefineConstants>
3636
</PropertyGroup>
3737

38+
<PropertyGroup Condition="'$(TargetFramework)' == 'net9.0'">
39+
<DefineConstants>NET9_0</DefineConstants>
40+
</PropertyGroup>
41+
42+
3843
<ItemGroup>
3944
<None Include="..\README.md" Pack="true" PackagePath="\" />
4045
<None Include="..\icon.png" Pack="true" PackagePath="\" Condition="Exists('..\icon.png')" />
@@ -75,4 +80,12 @@
7580
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="9.0.4" />
7681
</ItemGroup>
7782

83+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
84+
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.2" />
85+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
86+
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
87+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
88+
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="9.0.4" />
89+
</ItemGroup>
90+
7891
</Project>

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
[![NuGet Version](https://img.shields.io/nuget/v/ObjectIdentity.svg)](https://www.nuget.org/packages/ObjectIdentity/)
55
[![NuGet Downloads](https://img.shields.io/nuget/dt/ObjectIdentity.svg)](https://www.nuget.org/packages/ObjectIdentity/)
66

7-
A library for generating unique IDs for objects prior to their being saved to the database with SQL Server backend support via sequences.
7+
A library for generating unique sequential IDs for objects across many servers and services prior to their being saved to the database. An implementation exists using a SQL Server backend support via sequences, but the library is intended to be extensible to other potential back end soutions for identity.
88

99
## Features
1010

1111
- Thread-safe unique ID generation
1212
- SQL Server backend
13+
- Designed to support multiple instances of identity services without creating duplicate ids regardless of scale out
1314
- Extensible to support alternative stores for mechanisms via the IIdentityStore interface
1415
- Configurable ID ranges
1516
- Efficient batch allocation, allocation of block sizes can be handled via the scope initializer

0 commit comments

Comments
 (0)