- Notifications
You must be signed in to change notification settings - Fork99
A smart set of common classes and implementations to improve your development productivity.
License
NetDevPack/NetDevPack
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Package | Version | Popularity |
---|---|---|
NetDevPack |
NetDevPack is a comprehensive set of reusable classes and interfaces designed to improve development experience and productivity in .NET applications. It encapsulates best practices and common patterns such as Domain-Driven Design (DDD), CQRS, Validation, Notification, and Mediator.
If you find this project useful, please give it a star! It helps us grow and improve the community.
- ✅ Domain-driven design base classes and interfaces
- ✅ CQRS support via Mediator pattern
- ✅ FluentValidation integration
- ✅ Domain events and notifications handling
- ✅ Unit of Work and repository base contracts
Install via NuGet:
dotnet add package NetDevPack
usingNetDevPack.Domain;publicclassCustomer:Entity{publicstringName{get;privateset;}publicCustomer(Guidid,stringname){Id=id;Name=name;}}
usingNetDevPack.Data;publicinterfaceICustomerRepository:IRepository<Customer>{Task<Customer>GetByName(stringname);}
publicclassCustomerCommandHandler:IRequestHandler<RegisterCustomerCommand,ValidationResult>{privatereadonlyIMediatorHandler_mediator;publicCustomerCommandHandler(IMediatorHandlermediator){_mediator=mediator;}publicasyncTask<ValidationResult>Handle(RegisterCustomerCommandrequest,CancellationTokencancellationToken){// Business logicawait_mediator.PublishEvent(newCustomerRegisteredEvent(...));returnnewValidationResult();}}
usingFluentValidation;publicclassCustomerValidator:AbstractValidator<Customer>{publicCustomerValidator(){RuleFor(c=>c.Name).NotEmpty();}}
For a full implementation example, checkEquinox Project
Supports:
- ✅ .NET Standard 2.1
- ✅ .NET 5 through 9 (including latest versions)
⚠️ Legacy support for .NET Core 3.1 and older (with limitations)
.NET DevPack was developed byEduardo Pires under theMIT license.
About
A smart set of common classes and implementations to improve your development productivity.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.