add nhibernate filters

Posts   
 
    
costab
User
Posts: 36
Joined: 21-Aug-2010
# Posted on: 30-May-2011 09:12:17   

Nhibernate supports filters - for more on the subject check this link: http://nhforge.org/doc/nh/en/index.html#objectstate-filters

I have objects with multi-language descriptions and I want to be able to load just the description for the current context language.

Does llblgen pro support nhibernate filters, i.e. can I add them somehow in the llblgen model and have the tool generate the filters properly?

thanks

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 30-May-2011 12:04:10   

Not from the designer.

For ways of extensions please check: Extending the generated mapping files

costab
User
Posts: 36
Joined: 21-Aug-2010
# Posted on: 30-May-2011 18:25:12   

Walaa wrote:

Not from the designer.

For ways of extensions please check: Extending the generated mapping files

Would adding that custom block inside a property work?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 31-May-2011 06:37:06   

costab wrote:

Walaa wrote:

Not from the designer.

For ways of extensions please check: Extending the generated mapping files

Would adding that custom block inside a property work?

Yes, put it inside the class:

<!-- __LLBLGENPRO_USER_CODE_REGION_START EntityMappingCustomCode -->
    <filter name="myFilter" condition=":myFilterParam = MY_FILTERED_COLUMN"/>
<!-- __LLBLGENPRO_USER_CODE_REGION_END -->
David Elizondo | LLBLGen Support Team