13 lines
466 B
C#
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; } 같은 테이블들이 추가될 겁니다.
|
|
} |