Plans to "support" NH 3 QueryOver lambda expressions with RS?

[Build 6.0.2202]

As seen in, the following code is pretty common when using NHibernate 3 and its QueryOver api:

Cat catAlias = null;
Kitten kittenAlias = null;

IQueryOver<Cat,Cat> catQuery =
      session.QueryOver<Cat>(() => catAlias)
          .JoinAlias(() => catAlias.Kittens, () => kittenAlias)
          .Where(() => catAlias.Age > 5)
          .And(() => kittenAlias.Name == "Tiddles");

In cases like these RS warns for both ConditionIsAlwaysTrueOrFalse as well as PossibleNullReferenceException .

To avoid having to sprinkle "// ReSharper disable ..." all over the place, is there any way to make RS understand these cases are safe (e.g. by somehow not warn when we pass in labmda expressions) not warn all the time for it?
If not, plans to "fix" these issues in future releases?


1 comment
Comment actions Permalink

Added feature request: "Option to not warn for NullReferenceException etc. for passed parameters of type System.Linq.Expressions.Expression"


Please sign in to leave a comment.