How to simply map an NHibernate ISet to IList using AutoMapper
问题 I'm trying to use AutoMapper to map from DTO's to my Domain. My DTO's might look like this: public class MyDTO { public string Name { get; set; } public bool OtherProperty { get; set; } public ChildDTO[] Children { get; set;} } public class ChildDTO { public string OtherName { get; set; } } My Domain objects like this: public class MyDomain { public string Name { get; set; } public bool OtherProperty { get; set; } public ISet<ChildDomain> Children { get; set; } } public class ChildDomain {