SPMS_API/SPMS.Infrastructure/AppDbContext.cs
SEAN f02a3884a2 refactor: 클린 아키텍쳐 적용 및 프로젝트 분리 (Resolves #5)
1. 프로젝트 이름 변경
2. 계층 추가
3. 설정 파일 수정
2026-01-19 16:37:50 +09:00

13 lines
466 B
C#

using Microsoft.EntityFrameworkCore; // 👈 이거 없으면 DbContext에서 빨간 줄 뜹니다!
namespace SPMS.Infrastructure;
public class AppDbContext : DbContext
{
// 생성자: API 프로젝트에서 옵션(DB 연결 문자열 등)을 주입받기 위함
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
{
}
// 나중에 여기에 DbSet<User> Users { get; set; } 같은 테이블들이 추가될 겁니다.
}