无法创建类型为“ DataContext”的对象

I have two projects a startup project Discordbot and a project Discordbot.Data.

By first changing directory to Discordbot I ran the following command:

dotnet ef migrations add InitialCreate --startup-project ./ --project ../Discordbot.Data/

当我这样做时,出现以下错误:

Unable to create an object of type 'DataContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728

My DataContext.cs is located in Discordbot.Data and looks like:

public class DataContext : DbContext
{
    public DataContext(DbContextOptions<DataContext> options) : base(options) { }

    public DbSet<Achievement> Achievements { get; set; }
    public DbSet<GuardianType> GuardianTypes { get; set; }
    public DbSet<Rank> Ranks { get; set; }
    public DbSet<Treasure> Treasures { get; set; }
    public DbSet<User> Users { get; set; }
    public DbSet<UserAchievement> UserAchievements { get; set; }
    public DbSet<UserTreasure> UserTreasures { get; set; }
}

My Startup.cs file is located in Discordbot my AddDbContext looks like:

private void ConfigureServices(IServiceCollection services)
{
    services.AddDbContext<DataContext>(x => x.UseSqlite("Data Source=Discord.db"))
}

I am working on a console project (Discordbot) and Discordbot.Data is a class library project, am I doing something wrong?