17 lines
540 B
C#
17 lines
540 B
C#
using Domain.Entities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Infrastructure;
|
|
|
|
public class HealthcareManagerDatabase(DbContextOptions<HealthcareManagerDatabase> options) : DbContext(options)
|
|
{
|
|
public DbSet<Patient> Patients { get; set; }
|
|
public DbSet<MedicalHistory> MedicalHistories { get; set; }
|
|
public DbSet<Doctor> Doctors { get; set; }
|
|
public DbSet<Admin> Admins { get; set; }
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
} |