Fluent Nhibernate map list of lists

2019-09-08 05:44发布

I am writing mapping for the class with Fluent Nhibernate:

public class UniqueFeaturesSet : IEntity
    {
        public UniqueFeaturesSet(List<List<double>> mfcc)
        {
            MFCC = mfcc;
        }

        public virtual List<List<double>> MFCC { get; set; }

        public virtual int Id { get; set; }
    }

How to map List<List<double>> ?

1条回答
萌系小妹纸
2楼-- · 2019-09-08 06:20

It is not possible to map nested collections with [Fluent][N]Hibernate. The inner collection needs to be in an own class.

查看更多
登录 后发表回答