Context/UniversidadContexto.cs
using Microsoft.EntityFrameworkCore; | |
using UniversidadWebsite.Models; | |
namespace UniversidadWebsite.Context | |
{ | |
public class UniversidadContexto : DbContext | |
{ | |
public UniversidadContexto(DbContextOptions<UniversidadContexto> opciones) : base(opciones) | |
{ | |
} | |
public DbSet<Estudiante> Estudiantes { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment