Issue with entityframework project
SathyanarayananAV
1
Reputation point
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
4,817 questions
Sign in to answer