无法将类型为NHibernate.Collection.Generic.PersistentGenericBag的对象转换为列表
我有一个称为ReportRequest的类,如下: public class ReportRequest { Int32 templateId; List<Int32> entityIds; public virtual Int32? Id { get; set; } public virtual Int32 TemplateId { get { return templateId; } set { templateId = value; } } public virtual List<Int32> EntityIds { get { return entityIds; } set { entityIds = value; } …