0
我有一个问题:类型没有默认构造函数automapper
public class TDocumentation
{
public XmlElement Summary { get; set; }
public XmlElement LongDescription { get; set; }
public XmlAttribute[] AnyAttr { get; set; }
}
...和:
public class ProxieTDocumentation
{
public XmlElement Summary { get; set; }
......
}
Mapper.CreateMap<Proxies.TDocumentation, TDocumentation>()
...抛出:
---->系统.ArgumentException:类型“System.Xml.XmlElement”没有默认构造函数automapper
如何在另一个上创建映射?
什么Automapper的版本?我只是用2.0来试试这个,我没有得到异常(使用你发布的类定义)。 – PatrickSteele 2012-04-02 18:39:45
感谢您的答案,我使用版本2.1.265.0 – 2012-04-07 10:56:18