﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on NHibernate Filters</title><description>I _think_ so, not sure
</description><link>http://ayende.com/3993/nhibernate-filters#comment8</link><guid>http://ayende.com/3993/nhibernate-filters#comment8</guid><pubDate>Mon, 11 May 2009 15:03:07 GMT</pubDate></item><item><title>zoidbeck commented on NHibernate Filters</title><description>Sorry, that did not work. should have masked the xml.
  
Here is the example in pure text:
  
  
class blog
  
    has a list of comments
  
  
class comment
  
   has a list of edits
  
  
class edit 
  
   has a edit-timestamp property
  
  
filter:
  
   name="effectiveDate" 
  
   condition=":asOfDate &gt;= Edits.EditTS" 
  
  
would this be possible using filters?
  
</description><link>http://ayende.com/3993/nhibernate-filters#comment7</link><guid>http://ayende.com/3993/nhibernate-filters#comment7</guid><pubDate>Mon, 11 May 2009 08:59:06 GMT</pubDate></item><item><title>zoidbeck commented on NHibernate Filters</title><description>Hi Ayende,
  
is it possible to use this filter with properties residing deeper in the objectgraph, for example on a  
&lt;many association within the filtered bag?
  
  
something like this, where Edits would be a mapped 
&lt;many-to-one holding the timestamp:
  
&lt;filter= Edits.EditTS"/&gt;
  
  
&gt;</description><link>http://ayende.com/3993/nhibernate-filters#comment6</link><guid>http://ayende.com/3993/nhibernate-filters#comment6</guid><pubDate>Mon, 11 May 2009 08:53:42 GMT</pubDate></item><item><title>Tomasz Modelski commented on NHibernate Filters</title><description>I made compilation of various NHibernate guides, help topics, walktroughts, … .
  
Main source is Ayende and Fabio Maulo guides and posts which I find most useful.
  
I hope you’ll find my compilation useful either.
  
  
[it.tmod.pl/Blog/EntryId/148/NHibernate-guides.aspx](http://it.tmod.pl/Blog/EntryId/148/NHibernate-guides.aspx)  
  
regards, Tomasz M.
</description><link>http://ayende.com/3993/nhibernate-filters#comment5</link><guid>http://ayende.com/3993/nhibernate-filters#comment5</guid><pubDate>Mon, 11 May 2009 03:55:05 GMT</pubDate></item><item><title>Dmitry commented on NHibernate Filters</title><description>Filters are certainly very useful especially when dealing with records that expire or can have a temporary invalid/restricted state.
  
  
What I really don't like is that Session.Get and Session.Load commands ignore filters. Session.Load is not much of a problem because it is only being used when it is known that the record exists. But I always end up reimplementing the Get() method in the repository using a query to make sure developers do not accidentally load an invalid record and probably ending up losing some optimization benefits.
</description><link>http://ayende.com/3993/nhibernate-filters#comment4</link><guid>http://ayende.com/3993/nhibernate-filters#comment4</guid><pubDate>Mon, 04 May 2009 14:31:57 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Filters</title><description>Frank,
  
Depending on what you are doing.
  
I would tend to use Rhino Security for such tasks
</description><link>http://ayende.com/3993/nhibernate-filters#comment3</link><guid>http://ayende.com/3993/nhibernate-filters#comment3</guid><pubDate>Mon, 04 May 2009 12:31:46 GMT</pubDate></item><item><title>Erik van Brakel commented on NHibernate Filters</title><description>Wow, this is one feature I didn't know of. Thanks!
</description><link>http://ayende.com/3993/nhibernate-filters#comment2</link><guid>http://ayende.com/3993/nhibernate-filters#comment2</guid><pubDate>Mon, 04 May 2009 12:05:50 GMT</pubDate></item><item><title>Frank Quednau commented on NHibernate Filters</title><description>Hi Ayende,
  
would this be the right feature to leverage when implementing data restrictions based on user privileges?
</description><link>http://ayende.com/3993/nhibernate-filters#comment1</link><guid>http://ayende.com/3993/nhibernate-filters#comment1</guid><pubDate>Mon, 04 May 2009 08:26:39 GMT</pubDate></item></channel></rss>