Files
pos-system/docs/en/skills/repository-pattern.md
Ho Ngoc Hai 6996e12ff0 docs: Add comprehensive Agent Skills documentation in English and Vietnamese
- Introduced new documentation for Agent Skills, detailing best practices, code patterns, common pitfalls, and quick references across various categories such as Architecture, Data Access, Security, Error Handling, Testing, Infrastructure, Communication, and Documentation.
- The documentation is structured to facilitate easy navigation and understanding, supporting developers in implementing consistent patterns on the GoodGo Platform.
- Both English and Vietnamese versions are provided to ensure accessibility for a wider audience.
2026-01-14 12:05:26 +07:00

1.4 KiB

Entity Framework Core repository và data access patterns

Skill: repository-pattern
Compatibility: .NET 10+, Entity Framework Core 8+, Dapper

Overview

Entity Framework Core repository và data access patterns. Use for DbContext, repositories, migrations, aggregate roots, Unit of Work, và CQRS queries.

When to Use

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

Quick Reference

For detailed patterns, code examples, and best practices, refer to the full skill documentation.

See Skills Index for related skills.

Additional Resources


Vietnamese Version: Tài liệu tiếng Việt