3

我在从 COM 对象映射到对象时遇到问题。我相信问题在于GetType()COM 对象返回System.__ComObject. 我怎样才能解决这个问题?

Missing type map configuration or unsupported mapping.

Mapping types:
Recipient -> RecipientModel
Microsoft.Office.Interop.Outlook.Recipient -> MyApp.Forms.Models.RecipientModel

Destination path:
RecipientModel

Source value:
System.__ComObject
4

1 回答 1

0

This was brought up on the AutoMapper Repo and the solution is to map to only the COM class implementing the interface or just cast when mapping.

于 2016-06-08T21:55:08.013 回答