Skip to content

antony-jekov/NoPrimitives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo with the letters N and P

tests workflow codecov

No Primitives: Value Objects the easy way!

Forget the boilerplate nonsense!

It holds your hand from declaring your Value Object to using it in a database, to serializing it to JSON and beyond. No boilerplate code, just a simple Attribute!

Install

dotnet add package NoPrimitives

Usage

[ValueObject<Guid>]
partial record UserId;

...

app.MapGet("/v1/users/{{id}}", async (UserId id) => {
    // use your value object and enjoy it being always valid!
})

Test Coverage Graph

codecov

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages