Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add UUIDv7 generation option #60

Closed
wants to merge 1 commit into from

Conversation

Funkest
Copy link
Contributor

@Funkest Funkest commented Nov 18, 2024

Changes:

  • Implements UUIDv7 generation using Guid.CreateVersion7() (.NET 9.0 feature)
  • Adds corresponding unit tests
  • Updates documentation

Note: Using [UnitOf<Guid>(UnitGenerateOptions.UUIDv7)] requires .NET 9.0 or higher.
Compilation will fail on earlier .NET versions. Currently, there's no backward
compatibility solution implemented.

@Funkest Funkest closed this Nov 18, 2024
@Funkest
Copy link
Contributor Author

Funkest commented Nov 18, 2024

It seems better to implement another New() method with preprocessor directive instead of adding UnitGenerateOptions.
I'll request again later.

@Funkest Funkest deleted the feature/funkest-guidv7 branch November 19, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant