如何使用Nhibernate </string>映射Queue <string>的类型

时间:2012-05-27 00:21:21

标签: nhibernate nhibernate-mapping

例如:

    public class Product
    {
        public Queue<string> strings{get;set;}
    }

在nhibernate中,如何映射Queue的类型,帮帮我吧!

1 个答案:

答案 0 :(得分:0)

为什么不更新和存储DTO列表,DTO是字符串和索引/顺序的组合,在DTO中将它添加到队列中并将其存储在数据库中。您的Queue属性从此列表中读取,然后构建队列,并且队列的set属性更新列表。

这是一种可行的解决方法吗?