Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created January 9, 2021 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebeam7/e10a3365a333ec3b2c83410f8a548d5c to your computer and use it in GitHub Desktop.
Save icebeam7/e10a3365a333ec3b2c83410f8a548d5c to your computer and use it in GitHub Desktop.
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