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

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

    There is a library called AutoMapper which you can download. It helps you to define class mappings from one type to another.

    Mapper.CreateMap();
    Mapper.CreateMap();
    

提交回复
热议问题