Issue with entityframework project

SathyanarayananAV 1 Reputation point
2022-09-23T08:09:12.863+00:00

Dear all,

Severity Code Description Project File Line Suppression State
Error CS0311 The type 'ERPProcess.Models.CompanyContext' cannot be used as type parameter 'TContext' in the generic type or method 'DbContextOptions<TContext>'. There is no implicit reference conversion from 'ERPProcess.Models.CompanyContext' to 'Microsoft.EntityFrameworkCore.DbContext'. ERPProcess D:\Software\ERPProcess\ERPProcess\Models\CompanyContext.cs 14 Active

I am getting the above error. I am new to entity framework. Can somebody help me.

Thanks
Sathya

Developer technologies | ASP.NET | ASP.NET Core
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.