Hi,

I would like to translate the following SQL query in Nhibernate:

select * from tableA a inner join tableB b on a.id = b.id where a.year
> 2000 and len(b.number) >= 6

What I cannot achieve is the "len(b.number) >= 6". What I have so far
in Nhibernate is:

IList data = session.CreateQuery("from tableA a join a.TableB b where
a.year > :year")
                             .SetParameter(year, 2000)
                             .List();

Does anyone know how to "translate" "len(b.number) >= 6" in
Nhibernate?

Thanks.
Mike





--~--~---------~--~----~------------~-------~--~----~
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