Files
FACULTATE-HEALTHCARE_MANAGER/backend/Infrastructure/HealthcareManagerDatabase.cs
T
2024-05-21 12:10:53 +03:00

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);
}
}