abp-core

Explain ABP Framework conventions for modules, dependency injection, and service classes.

14.4k|3.7k|Updated Dec 3, 2016
One-click install
npx skills add https://github.com/abpframework/abp --skill abp-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: abp-core
Source: https://github.com/abpframework/abp/tree/main/.claude/skills/abp-core
Command: npx skills add https://github.com/abpframework/abp --skill abp-core

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance on the core conventions and best practices of the ABP Framework, helping developers build robust and maintainable enterprise applications on .NET.

Core Features & Use Cases

  • Dependency Injection: Understand ABP's automatic registration and conventions.
  • Module System: Learn how to structure and configure ABP modules.
  • Service Usage: Proper usage of IRepository, ApplicationService, DomainService, and base class properties.
  • Async Patterns: Adherence to ABP's asynchronous programming standards.
  • Error Handling: Correctly implement BusinessException for domain rule violations.
  • Localization: Best practices for internationalizing applications.
  • Use Case: When starting a new ABP project or refactoring existing code, consult this Skill to ensure adherence to ABP's architectural principles and conventions.

Quick Start

Use the abp-core skill to understand how to properly inject services in an ABP application.

Frequently Asked Questions about abp-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does dependency injection registration work in the ABP Framework?

Dependency injection in the ABP Framework relies on automatic registration and specific conventions for services. It guides developers to properly inject dependencies and structure classes using base conventions for efficient development.

How do I structure and configure modules for a domain driven design project in ABP?

Structuring modules in ABP involves using the framework's module system to configure domain driven design layers. This approach ensures clear separation of concerns and aligns application services with architectural best practices.

When should I use DomainService versus ApplicationService base classes in ABP?

Use DomainService for core business logic and domain rule violations, while ApplicationService handles application-level orchestration. ABP conventions dictate leveraging these base classes to properly structure operations and manage repository interactions.

What is the best way to handle domain rule violations using BusinessException in .NET?

Handling domain rule violations in ABP involves implementing the BusinessException class to throw specific errors. This convention standardizes error handling and integrates seamlessly with the framework's localization and asynchronous patterns.

How to implement localization for internationalizing a .NET application using ABP conventions?

Implementing localization in ABP requires adhering to the framework's internationalization best practices. It provides built-in conventions to manage resource files and translate application services efficiently across different cultures.

Does ABP require specific asynchronous programming standards for application services?

Yes, ABP enforces asynchronous programming standards for application services and repositories. Adhering to these conventions ensures non-blocking operations and maintains performance across the .NET application's module system.