For HasFlag I was leaning towards throwing for constant nulls and let the database take care of cases where the null is a result of the query. I don't see a huge value in allowing constant nulls for HasFlags and translating it to SQL - if we did that wouldn't it mean that the result is always false and therefore the whole expression could be translated to the constant False expression?
↧