UnitGenerator
StronglyTypedId
UnitGenerator | StronglyTypedId | |
---|---|---|
2 | 3 | |
309 | 1,453 | |
1.9% | - | |
7.3 | 6.1 | |
11 days ago | 16 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
UnitGenerator
-
what do you find most frustrating about dotnet?
You either have to do it manually or use a code generator (there are nugets for that, for example: https://github.com/Cysharp/UnitGenerator), but you absolutely can.
-
.NET 7 Preview 5 - Generic Math
You might wanna take a look at https://github.com/Cysharp/UnitGenerator we've used it on some of our systems at work and works pretty well overall as Value Objects.
StronglyTypedId
-
User IDs probably shouldn't be passed around as ints
> Is it just user-ids we should discuss or is it all kind of ids represented as an int?
Strongly typed ID’s are a thing advocated for in general [0], yes.
And they aren’t even inconvenient in some languages. Modern C# for example makes it very easy to use them [1].
[0]: https://andrewlock.net/using-strongly-typed-entity-ids-to-av...
[1]: https://github.com/andrewlock/StronglyTypedId
-
Make Strongly-Typed-Id of DDD easier in Entity Framework Core 7
I've only read through the readme but my gut reaction is that https://github.com/andrewlock/StronglyTypedId/ feels more ergonomic to me. Your project is definitely well-thought out and the documentation is excellent though!
-
.NET 7 Preview 5 - Generic Math
There is a github project StronglyTypedId which promises to support the latter kind of thing via source generation though I haven't yet tried it in practice.
What are some alternatives?
vscode-csharp - Official C# support for Visual Studio Code
LessCode.EFCore.StronglyTypedId - Automatically generate Types for Strongly Typed Id in Entity Framework Core
UploadStream - high performance file upload streaming for dotnet
csharplang - The official repo for the design of the C# programming language
FileTypeChecker - Cross platform file type validator for .NET
spec - The canonical spec for ulid
swagger-ui - Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
Nuget Package Manager - Repo for NuGet Client issues