Lucene.NET通过NHibernate.Search和POCO实体 [英] Lucene.NET through NHibernate.Search and POCO Entities

查看:176
本文介绍了Lucene.NET通过NHibernate.Search和POCO实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

反正是有存真POCO实体,同时通过与NHibernate.Search工作Lucene.NET?

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

看来只有Lucene.NET(NHibernate.Search)映射与实体类中的属性工作。

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

推荐答案

其实这是真的,不是很久以前。然而,也有不同的映射提供商那里。看看成映射命名空间的源代码。你将不得不建立自己的供应商,但它是可能的。

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.

这篇关于Lucene.NET通过NHibernate.Search和POCO实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆