Fluent Nhibernate map list of lists

2019-09-08 05:47发布

问题:

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:

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