Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.NET - EF Core University Context with Single Table
public class UniversityContext : DbContext
{
public UniversityContext(DbContextOptions<UniversityContext> options)
: base(options)
{
}
public DbSet<Student> Students { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment