Unable to cast object of type NHibernate.Collection.Generic.PersistentGenericBag to List

后端 未结 2 1698
暗喜
暗喜 2020-12-01 04:18

I have a class called ReportRequest as:

public class ReportRequest
{
    Int32 templateId;
    List entityIds;

    public virtual Int32? Id
            


        
2条回答
  •  醉梦人生
    2020-12-01 04:50

    I found that using ICollection worked where IList did not.

    I'm no NHibernate wizard, but I did want to throw a bone to someone else who might land on this issue.

提交回复
热议问题