Comments (5)
This was intentional to prevent two separate packages using the same algorithm from generating the same identifiers. While I can understand the transitive package issue, a better option might be an empty NewId package – but I don't think that would work either.
from newid.
Yeah, sorry. I did not mean to be prescriptive about a solution. That was just the first one that came to mind.
from newid.
Right, I get it. Eliminating the old package from your dependency chain would be the best course of action.
from newid.
Fantastic ID generator you guys have made here! Sorry if I'm being ignorant here, but wouldn't it be much easier to just keep it in it's own separate namespace, like "NewId" or..?
from newid.
Fantastic ID generator you guys have made here! Sorry if I'm being ignorant here, but wouldn't it be much easier to just keep it in it's own separate namespace, like "NewId" or..?
Long story, but NewId was originally in MassTransit, later it was moved out to use it in other projects but the namespace remained the same to avoid breaking compatibility/builds. Now it's back in MassTransit.Abstractions (no namespace change required).
The problem with pushing a new v4 with the NewId namespace would be the duplication of the logic in the same process (people will screw up, they do it all the time and end up using both) resulting in duplicate Guids.
OH, and the whole static class with the same name as the namespace nonsense.
from newid.
Related Issues (15)
- Add greater and less than operators to NewId
- Why MassTransit namespace HOT 1
- Collisions of Ids HOT 8
- Which type of sequential guid HOT 1
- Sort guid HOT 1
- Add TryParse and TryWriteBytes HOT 1
- Bug when parsing a SequentialGuid. HOT 4
- Get running on `dotnet` cli / .NET Core HOT 11
- Performance issue with NewId for Primary key HOT 1
- Unique Id across all microservices HOT 4
- Question: are you aware of any ports or analogous implementations in java or php? HOT 2
- How to use NewId in EF Core for Id / primary key columns HOT 2
- NewId.NextGuid() vs NewId.NextSequentialGuid() usage HOT 2
- Integrate with mssql HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newid.