We have a plugin that we are moving from our 3.6 site to our 4.0 site. I have been getting the error `The entity type JDECarrierCodeRecord is not part of the model for the current context.` on this code:
public virtual IPagedList<JDECarrierCodeRecord> GetAllCarrierCodes(int pageIndex = 0, int pageSize = 30)
var query = from pnc in _pncRepository.Table
orderby pnc.CarrierCode, pnc.CarrierName
var records = new PagedList<JDECarrierCodeRecord>(query, pageIndex, pageSize);
After lots of struggle, we realized that this code works perfectly on my coworker's machine; however, I get the error on mine. The environments really should be the same -- and I've been working to verify that. None of the common answers around Google are helpful because this code works fine on another machine. It's something on my localhost only. Unfortunately, my localhost is the system from which we build and deploy things to our dev server, so I need to get it working sparkly on here.
Can anyone think of some places to check for a cause for this? Maybe some dependency like Entity Framework is out of order, but I don't see anything.