字典的FluentNHibernate映射 [英] FluentNHibernate mapping for Dictionary
本文介绍了字典的FluentNHibernate映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Fluent NHibernate映射简单的Dictionary属性的最佳方法是什么?
What is the best way of mapping a simple Dictionary property using Fluent NHibernate?
推荐答案
要将列表映射为字典:
HasMany(x => x.Customers)
.AsMap();
我没有用过;所以不能举个例子.
I have not used it; so cannot give an example.
请查看Wiki: 实际页面 由于站点似乎已关闭,我已经给出了页面的缓存版本.
Have look at the wiki: Cached version of the page, Actual page I have given the cached version of the page as the site seems to be down.
这篇关于字典的FluentNHibernate映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文