feat: Generic Repository 및 UnitOfWork 패턴 구현 (#18) #19
No reviewers
SPMS/Owners
Labels
No Label
Priority
High
Priority
Low
Priority
Medium
Priority
Non
Priority
Urgent
Status
Available
Status
Done
Status
In Progress
Type
Bug
Type
Chore
Type
Design
Type
Documentation
Type
Feature
Type
Improvement
Type
Refactor
Type
Research
Type
Task
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SPMS/SPMS_API#19
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/#18-repository-pattern"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 작업 요약
IRepository<T>및IUnitOfWork인터페이스 구현체 작성🔗 관련 이슈 (Related Issues)
Closes #18
🛠️ 작업 내용 (Changes)
SPMS.Infrastructure/Persistence/Repositories/Repository.cs— Generic Repository 구현 (CRUD, 페이징, 조건 검색)SPMS.Infrastructure/Persistence/UnitOfWork.cs— UnitOfWork 구현 (SaveChanges, 트랜잭션 관리)SPMS.API/Program.cs— DI 등록 (IRepository<>→Repository<>,IUnitOfWork→UnitOfWork)📢 리뷰어 참고 사항 (To Reviewers)
Repository<T>.Delete()는 EF Core의Remove()를 호출합니다. Soft Delete는 EF Core Global Query Filter + 서비스 레이어에서IsDeleted/DeletedAt필드를 직접 설정하는 방식으로 처리됩니다 (Service, Admin, Message 엔티티)GetPagedAsync()는 orderBy 미지정 시 기본적으로Id내림차순 정렬✅ 체크리스트 (Self Checklist)
📸 스크린샷 / 테스트 로그 (Screenshots/Logs)