Nhibernate projection with child collection
问题 Using NHibernate 2.1, I'm trying to project an entity and its child collection into a DTO. My entity looks like this.. public class Application { public int Id {get;set;} public string Name {get;set;} public List<ApplicationSetting> Settings {get;set;} // A bunch of other properties that I don't want in the DTO } public class ApplicationSetting { public int Id {get;set;} public string Name {get;set;} public string Code {get;set;} // A bunch of other properties that I don't want in the DTO }