set the substring outside the call?

NH-Linq can be a bit flaky sometimes


On Nov 16, 2:45 pm, Nieve <[email protected]> wrote:
> Hello all,
> I'm using Linq-to-nh and when I do
> query.Where(user => names.Contains(user.Name.Substring(0, 2)));
> I get a null reference exception.
> Any idea how this should be done and/or what's wrong in my code? Cause
> when I remove the Substring the query passes just fine...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to