The .NET Clean Architecture project aims to provide a simplified and reusable solution for developers to build better .NET applications.
Initially, the architecture was designed with 4 layers: Core, Infra, Business, and API, to separate different components efficiently.
Version 1.0 minimized the need for creating CRUD operations by utilizing OData and generating CRUD functionalities automatically.
Feedback on V1.0 highlighted the redundancy of adding a service and API controller for each entity when new entities were introduced.
In the current release V2.0+, the Business layer is made optional for each entity, reducing the need for custom code and introducing Akka for more complex business logic.
The usage of .NET Source Generator has significantly reduced boilerplate code, simplifying entity integration with EF and OData.
Users can download the .NET Clean Architecture project, run it in Visual Studio 2022 or using the .NET CLI command, and configure it via appsettings.Development.json.
Configuration options include settings for in-memory caching, authorization, datastore connection (SQLite, SQL Server, or Postgres), and response caching.
Entities can be easily added by inheriting the EntityRoot class within the CleanBase project, triggering automatic API controller generation and OData integration.
The .NET Clean Architecture project welcomes user feedback and aims to constantly improve with a community version under the MIT license.