I get this error and i don't know how to solve it. The error is thrown on this method:
public static List<TIPI_RECAPITI> GetTipiRecapiti()
{
var query = from q in dbContext.TIPI_RECAPITI
orderby q.ID ascending
select q;
return query.ToList<TIPI_RECAPITI>();
}
An EntityManager can only execute on a single thread. This EntityManager is authorized to execute on the thread with id=’16’; the requested operation came from the thread with Id=‘12’.