FluentNHibernate mapping for Dictionary

后端 未结 3 1718
深忆病人
深忆病人 2021-01-14 06:49

What is the best way of mapping a simple Dictionary property using Fluent NHibernate?

3条回答
  •  死守一世寂寞
    2021-01-14 07:24

    To map a list as a dictionary:

    HasMany(x => x.Customers)
      .AsMap();
    

    I have not used it; so cannot give an example.

    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.

提交回复
热议问题