InvalidOperationException: The DbContext of type cannot be pooled

preview_player
Показать описание
InvalidOperationException: The DbContext of type ‘IQContext’ cannot be pooled because it does not have a public constructor accepting a single parameter of type DbContextOptions or has more than one constructor.
Microsoft.EntityFrameworkCore.Internal.DbContextPool..ctor(DbContextOptions options)

InvalidOperationException: The DbContext of type ‘Context’ cannot be pooled because it does not have a public constructor accepting a single parameter of type DbContextOptions or has more than one constructor.
Microsoft.EntityFrameworkCore.Internal.DbContextPool..ctor(DbContextOptions options)
Рекомендации по теме