finalizare 1.0
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
using Core.Entities;
|
||||
using Domain.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Infrastructure.Data;
|
||||
namespace Infrastructure;
|
||||
|
||||
public class HealthcareManagerDatabase : DbContext
|
||||
public class HealthcareManagerDatabase(DbContextOptions<HealthcareManagerDatabase> options) : DbContext(options)
|
||||
{
|
||||
public HealthcareManagerDatabase(DbContextOptions<HealthcareManagerDatabase> options) : base(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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user