This issue is related to an SQL query that returns two or more columns with the same name. SQL will handle exact duplicate names in columns without problems, but C # will error everything like this.
An example of a situation:
TableA
int Id
varchar Name
TableB
int Id
int A_Id
varchar Name
SELECT A.*,
B.Name
FROM TableA A
INNER JOIN TableB
ON B.A_Id = A.Id
The Id and Name columns will be duplicated and throw an exception with EF
source
share