Fluent Nhibernate map list of lists

佐手、 提交于 2020-01-25 11:33:08

问题


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.



来源:https://stackoverflow.com/questions/10872334/fluent-nhibernate-map-list-of-lists

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!