Skip to content

Instantly share code, notes, and snippets.

@JIOO-phoeNIX
Created December 30, 2020 21:30
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 JIOO-phoeNIX/627b0f130a760f3013490eb54ba9f8f1 to your computer and use it in GitHub Desktop.
Save JIOO-phoeNIX/627b0f130a760f3013490eb54ba9f8f1 to your computer and use it in GitHub Desktop.
using Microsoft.EntityFrameworkCore;
namespace GraphQLSampleApp.DataAccess.Entity
{
public class SampleAppDbContext : DbContext
{
public SampleAppDbContext(DbContextOptions<SampleAppDbContext> options) : base(options)
{
}
public DbSet<Employee> Employee { get; set; }
public DbSet<Department> Department { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment