使用Fluent Nhibernate定义NHibernate过滤器的语法? [英] Syntax to define a NHibernate Filter with Fluent Nhibernate?
本文介绍了使用Fluent Nhibernate定义NHibernate过滤器的语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图关注这个ayende的blogpost:
> < 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屋!
查看全文