36 lines
1.4 KiB
Markdown
36 lines
1.4 KiB
Markdown
# Entity Framework Core repository và data access patterns
|
|
|
|
> **Skill**: `repository-pattern`
|
|
> **Compatibility**: .NET 10+, Entity Framework Core 8+, Dapper
|
|
|
|
## Tổng Quan
|
|
|
|
Entity Framework Core repository và data access patterns. Use for DbContext, repositories, migrations, aggregate roots, Unit of Work, và CQRS queries.
|
|
|
|
## Khi Nào Sử Dụng
|
|
|
|
Use this skill when:
|
|
- Creating new repositories for aggregates / Tạo repositories mới cho aggregates
|
|
- Implementing data access with EF Core / Triển khai data access với EF Core
|
|
- Setting up Unit of Work pattern / Cài đặt Unit of Work pattern
|
|
- Separating read/write operations (CQRS) / Phân tách read/write (CQRS)
|
|
- Creating database migrations / Tạo database migrations
|
|
- Optimizing query performance / Tối ưu hiệu năng query
|
|
|
|
## Tham Chiếu Nhanh
|
|
|
|
Để biết chi tiết về patterns, code examples, và best practices, xem tài liệu skill đầy đủ.
|
|
|
|
## Skills Liên Quan
|
|
|
|
Xem [Danh Mục Skills](./index.md) để tìm skills liên quan.
|
|
|
|
## Tài Nguyên Bổ Sung
|
|
|
|
- **Tài Liệu Skill Đầy Đủ**: [`.agent/skills/repository-pattern/SKILL.md`](../../.agent/skills/repository-pattern/SKILL.md)
|
|
- **Ví Dụ Code**: [`.agent/skills/repository-pattern/references/REFERENCE.md`](../../.agent/skills/repository-pattern/references/REFERENCE.md)
|
|
|
|
---
|
|
|
|
**English Version**: [English Documentation](../../en/skills/repository-pattern.md)
|