What problem does it solve?
This Skill provides a comprehensive guide to building robust and maintainable application layers within the ABP Framework, addressing common pitfalls and promoting best practices for services, DTOs, validation, and error handling.
Core Features & Use Cases
- Application Service Patterns: Learn the correct structure for interfaces and implementations, including naming conventions and best practices.
- DTO Design: Understand how to define Data Transfer Objects for various purposes (input, output, list items) and where to locate them.
- Validation Strategies: Implement data validation using Data Annotations,
IValidatableObject, and FluentValidation.
- Error Handling: Master the use of
BusinessException, EntityNotFoundException, and UserFriendlyException for effective error management.
- Object Mapping: Utilize Mapperly for efficient compile-time object mapping or integrate with AutoMapper.
- Use Case: When developing a new feature in an ABP application, use this Skill to ensure your application services are structured correctly, DTOs are well-defined, and validation and error handling are implemented according to ABP standards.
Quick Start
Use the abp-application-layer skill to generate a basic CreateBookDto with validation rules.