Instead of using the database name as proposed context name, you may want to name the dervied DbContext after your domain or similar.
efpt.config.json
"ContextClassName": "NorthwindContext",
NorthwindContext.cs
public partial class NorthwindContext : DbContext
{
public NorthwindContext()
{
}
public NorthwindContext(DbContextOptions<NorthwindContext> options)
: base(options)
{
}
efpt.config.json
"ContextClassName": "CustomContext",
CustomContext.cs
(file renamed)
public partial class CustomContext : DbContext
{
public CustomContext()
{
}
public CustomContext(DbContextOptions<CustomContext> options)
: base(options)
{
}