I am running into the issue that is described here: http://stackoverflow.com/questions/1389561/cannot-count-on-iqueryable-nhibernate
That problem always produces a "WHERE NOT (1 = 1)" on the where clause which always returns nothing. It seems as if NHibernate is not performing the cast correctly on my entity when I attempt to convert to a "ICanBeDeleted" interface. Has anyone else seen this? Am I missing something simple here? Here is an example of my queryable that is attempting to filter out these items. public class NotDeletedQuery<TEntity> where TEntity : ICanBeDeleted { public Expression<Func<TEntity, bool>> Predicate() { return entity => ( entity.Deleted == false ); } } I already tried using a site-wide filter and ran into problems with the joins and the filter as described in another post. at this point I'm just trying to get the above to work as this query is only applied to decorated repositories and would work easier for me. thanks! Sean -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhus...@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.