dunet
mapperly
dunet | mapperly | |
---|---|---|
3 | 20 | |
475 | 2,334 | |
- | 3.5% | |
8.5 | 9.5 | |
14 days ago | 7 days ago | |
C# | C# | |
MIT License | Apache License 2.0 |
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.
dunet
-
Rolled my own Result<T,E> type that seems to work better than others.
BUT It is possible to implement it in a pretty good way. The main issue with the majority of existing libraries is that they're not able to guarantee that Error variant matching is exhaustive. Thus I'd recommend the usage of code generators libraries (https://github.com/domn1995/dunet looks like a good choice to start with) to build Result and Error(s) unions in a proper way
-
How do you live without tagged union types?
Or use something like dunet https://github.com/domn1995/dunet
- Dunet: C# discriminated union source generator
mapperly
-
I created a new object mapper
Check out https://github.com/riok/mapperly
- Should I use AutoMapper for this?
-
Is Automapper the most hated library?
There are alternatives doing this already e.g. https://github.com/riok/mapperly
-
When using the DTO pattern and rolling your own mappers, is there a shorter way to write the mapping functions?
No sure if I understand your problem correctly, but maybe something like Mapster or Mapperly could help with that, given that it can generate source code instead of using reflection or expression trees.
-
Auto Mapping Library
That's why I'd suggest Mapperly. It outperforms Automapper too, Chapsas made a video about that recently.
-
Best .net/c# resources for senior engineer
Do note that AutoMapper is reflection based. If you'd like a compile time mapper, looking into something like mapperly or MappingGenerator
- What C# tools would you like to use that don't exist today?
- Mapperly - A .NET source generator for object to object mappings
- Show HN: Mapperly – A .NET source generator for object to object mappings
What are some alternatives?
OneOf - Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching
Mapster - A fast, fun and stimulating object to object Mapper
csharp-combinators - Experiments to understand and find practical use cases for combinators.
AutoMapper - A convention-based object-object mapper in .NET.
csharplang - The official repo for the design of the C# programming language
Mapping Generator - :arrows_counterclockwise: "AutoMapper" like, Roslyn based, code fix provider that allows to generate mapping code in design time.
ZeroQL - C# GraphQL client with Linq-like syntax
ExpressMapper - Mapping .Net types
plato - A simple and efficient cross-platform programming language.
Protobuf.NET - Protocol Buffers library for idiomatic .NET
func - Library to extend C#'s functional programming capabilities
AgileMapper - A zero-configuration, highly-configurable, unopinionated object mapper with viewable execution plans. Flattens, unflattens, deep clones, merges, updates and projects queries. .NET 3.5+ and .NET Standard 1.0+.