CreateQuery("from Person p where p.Name like
:MyParameter").SetString("MyParameter","%?%").List<Person>();

2008/11/19 杨小华 <[EMAIL PROTECTED]>

> Hi,
>
>    I am new to use nhibernate. I need make a query like the following.
>
>  hql: "from Person where 1 = 1 and Person.Name like %?%"
>
>    I want to know how to write like express in hql.
>
>   Thank you.
> <[email protected]>
> >
>


-- 
Fabio Maulo

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