Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created July 21, 2021 19:55
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 manoj-choudhari-git/cc5b8efdc3067fdfe752fda76dd8167e to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/cc5b8efdc3067fdfe752fda76dd8167e to your computer and use it in GitHub Desktop.
.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