C# – The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM

asp.netcentity-frameworklinqnet

Previously I had only one entity context so the linq query was working well. Now we have splited the database into two sections, so I deleted the tables in the previous context and added another new entity context of the deleted tables, but when I run my application it shows the following error:

The mapping of CLR type to EDM type is ambiguous because multiple CLR
types match the EDM type 'SUP_ExSubGroupTable'. Previously found CLR
type 'Supporter24Model.SUP_ExSubGroupTable', newly found CLR type
'SUP_ExSubGroupTable'.

Thanks in advance.

Best Answer

I solved it by myself

by deleting the schema of duplicate tables

in the other context

Related Topic