entity framework dbcontext best practices code example
Example: generic dbcontext entity framework core
public class SampleContext : GuidDbContext
{
public IDbSet<Foo> Foos { get; set; }
public IDbSet<Bar> Bars { get; set; }
}