CH.CleanArchitecture
GuardClauses
CH.CleanArchitecture | GuardClauses | |
---|---|---|
2 | 8 | |
190 | 2,913 | |
- | - | |
7.9 | 8.0 | |
13 days ago | 17 days ago | |
JavaScript | 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.
CH.CleanArchitecture
-
EF Core: Effectively decouple the data and domain model
The IAggregateRoot interface is pretty specific to the overall architecture, as you may notice from the few domain-event-related functions in there. For more information regarding this, take a look at my earlier post Designing the domain model to support multiple persistence methods. Despite that, the point of this is to distinguish between data entities and domain entities so you should adjust this interface properly to your needs.
-
Implementing a Clean Architecture in ASP.NET Core 6
The repository for the source code of this solution can be found here. The solution includes an extremely basic domain model for an online shop application, as an example. The UI part for this is not included however. The order domain exists to simply showcase the different elements of the architecture.
GuardClauses
-
Why doesn't eager loading work with EF?
You could also use the Ardalis Guard Clause, Ardalis Result and Fluent Validation
-
3 things to avoid when implementing Domain-Driven Design (DDD)
Here is an example how one would make sure our order total is valid. For this purpose I use an amazing library called GuardClauses.
- What your hidden nuget gems ?
-
Implementing a Clean Architecture in ASP.NET Core 6
GuardClauses
-
Announcing .NET Community Toolkit v8.0.0 Preview 1
I'm guessing it's just a port of Ardalis' Guard class since he helped a lot with Microsoft's web projects.
-
How can I avoid IEnumerable multiple iterations? Is it bad to cast IEnumerable --> ICollection --> IEnumerable to perform validation?
The Guard Clauses are from: https://github.com/ardalis/GuardClauses
-
When to explicitly throw ArgumentNullException?
In terms of readability concerns, I definitely hear you on that. Using something like this can cut down on code bloat that comes with param validation and help with readability.
-
What a good Starter Kit for WebAPI for Asp.NET Core
It's made by Ardalis, who wrote Microsoft's architectural guide for ASP.NET Core Web APIs. I like his GuardClauses library too.
What are some alternatives?
blazor-starter-kit - Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
CleanArchitecture - Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core
MassTransit - Distributed Application Framework for .NET
MediatR - Simple, unambitious mediator implementation in .NET
modular-monolith-with-ddd - Full Modular Monolith application with Domain-Driven Design approach.
AutoMapper - A convention-based object-object mapper in .NET.
CleanArchitecture - Clean Architecture Solution Template for ASP.NET Core
Moq - Repo for managing Moq 4.x [Moved to: https://github.com/moq/moq]
JHipster.NET - JHipster.NET blueprint
ASP.NET MVC Boilerplate - .NET project templates with batteries included, providing the minimum amount of code required to get you going faster.