I am getting this error in asp.net when using Entity Framework :
\"Cannot implicitly convert type System.Data.EntityState to System.Data.Entity.EntityStat
This happened to me in a generated controller. It works for me after removing using System.Data.EntityState and adding using Microsoft.EntityFrameworkCore