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

后端 未结 14 1566
长发绾君心
长发绾君心 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:08

    For me this was because I was attempting to access a type with the same name on the wrong context instance.

    Say both ContextA and ContextB have SomeType. I was trying to access ContextA.SomeType on an instance of ContextB.

提交回复
热议问题