I have ConsoleApplication on .NET Core and also i added my DbContext to dependencies, but howewer i have an error:
Unable to create an object of type \'My
Hade the same problem with NET Core 3.1.
Needed to add one more constructor too solev this. Why I do not know.
Never hade to do it in the past.
public DataContext() { } public DataContext(DbContextOptions options) : base(options) { }