F2 avanzada

This commit is contained in:
2026-08-10 23:00:56 -03:00
parent 12b7b0f4b2
commit b4b25e49e0
49 changed files with 1304 additions and 227 deletions
+14
View File
@@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using vita_asistente.Data.Models;
using vita_asistente.Models;
namespace vita_asistente.Data
@@ -10,5 +11,18 @@ namespace vita_asistente.Data
: base(options)
{
}
// DbSet for Paciente model
public DbSet<Paciente> Pacientes { get; set; }
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.Entity<ApplicationUser>().ToTable("AspNetUsers");
builder.Entity<Paciente>()
.ToTable("Pacientes")
.HasBaseType<ApplicationUser>();
}
}
}