Using AutoMapper to Map IList<TSource> to (Iesi.Collections.Generic) ISet<TDestination>
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have been trying to solve this issue for a day now and have got no where so am hoping someone might have solved this before. The closest I found to a solution was How to simply map an NHibernate ISet to IList using AutoMapper and Map IList to ICollection through AutoMapper but still no joy. I have a data object that looks like: public class Parent { public virtual ISet Children { get ; set ; } } And a business object that looks like: public class ParentDto { public IList Children { get ; set ; } } Using AutoMapper to map from