使用Fluent Nhibernate定义NHibernate过滤器的语法? [英] Syntax to define a NHibernate Filter with Fluent Nhibernate?

查看:179
本文介绍了使用Fluent Nhibernate定义NHibernate过滤器的语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来我找不到正确的语法来定义一个使用Nhibernate流利的nhibernate过滤器。



我试图关注这个ayende的blogpost:

>

http:// ayende我使用.FormulaIs()方法在我的属性上定义了公式,但可以通过使用.FormulaIs()方法来定义公式。在google上找不到如何把这个定义翻译成流利的nhibernate:

 < filter-def name ='CultureFilter'> 
< filter-param name ='CultureId'type ='System.Int32'/>
< /过滤器-DEF>


这个最近的贴子在NHibernate的讨论中让我相信Fluent API尚不支持这些过滤器。


It seems I can't find the correct syntax to define a nhibernate filter using fluent Nhibernate.

I'm trying to follow this ayende's blogpost:

http://ayende.com/Blog/archive/2006/12/26/LocalizingNHibernateContextualParameters.aspx

I defined the formula on my property with .FormulaIs() method but can't find on google how to translate this definition to fluent nhibernate:

 < filter-def name='CultureFilter'>
   < filter-param name='CultureId' type='System.Int32'/>
 < /filter-def> 

解决方案

This recent post in the Fluent NHibernate discussion leads me to believe that filters are not yet supported by the Fluent API.

这篇关于使用Fluent Nhibernate定义NHibernate过滤器的语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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