Lucene.NET through NHibernate.Search and POCO Entities

荒凉一梦 提交于 2019-12-22 01:28:18

问题


Is there anyway to keep true POCO Entities while working with Lucene.NET through NHibernate.Search ?

It seems that Lucene.NET (NHibernate.Search) mapping only work with Attributes within Entity classes.


回答1:


Actually this was true, not too long ago. However, there are different mapping providers out there. Take a look into the source code for the Mapping namespace. You will have to build your own provider but it is possible.



来源:https://stackoverflow.com/questions/2356593/lucene-net-through-nhibernate-search-and-poco-entities

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