DbContextFactory use Activator

public TDbContext CreateDbContext<TDbContext>() where TDbContext : DbContext
{
    return Activator.CreateInstance(typeof(TDbContext), _nameOrConnectionString) as TDbContext;
}