The mapping of CLR type to EDM type is ambiguous with EF 6 & 5?

后端 未结 14 1600
长发绾君心
长发绾君心 2020-11-27 05:38

Please any one can help me to fix this error?

Schema specified is not valid. Errors:

The mapping of CLR type to EDM type is ambiguous because mult

14条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 06:31

    Another reason you might get this error: If you're loading custom assemblies with Assembly.LoadFile that have edmx files, that have already been loaded into memory. This creates duplicate classes that entity framework doesn't like.

提交回复
热议问题