Thanks Steve ! That's exactely what I needed :)

On Oct 21, 3:30 pm, sbohlen <sboh...@gmail.com> wrote:
> There are a few ways to achieve this.  Either:
>
> a) use the IFilter approach as detailed 
> here:http://nhforge.org/doc/nh/en/index.html#objectstate-filters
>
> or..
>
> b) employ the 'where' attribute in your class mapping as detailed
> here:http://nhforge.org/doc/nh/en/index.html#mapping-declaration-class
>
> The first is more flexible but easier to 'accidentally' forget to
> engage when you need it and the second approach is less flexible but
> more difficult to 'forget' to apply IMO.
>
> Hope this helps,
>
> -Steve B.
>
> On Oct 21, 7:23 am, graphicsxp <graphic...@googlemail.com> wrote:
>
> > Hi,
>
> > Maybe what I'm going to ask doesn't make much sense but I'll ask
> > anyway ;)
>
> > I have a field 'scrapped' in my table which is set to true when the
> > user delete an entity. So instead of doind a DELETE, I do an UPDATE.
> > This way no records get deleted.
>
> > However when I do a SELECT I need to make sure that I only get the
> > records for which the field 'scrapped' is set to false.
>
> > I can add that Expression to my criteria in my query, but I wanted to
> > know if it was possible to do it in a more generic way ? Maybe in the
> > mapping ?
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to