OK, sorry for askign this. There was a confusion from my side tracking the
excuted SQL, maybe confused two unrelated SQL statements or so.

For who may read this later, to cause WHERE clause LIKE operator in SQL
using LINQ To NHibernate, you write something like:

var query = from entity in Session.Linq<EntityType>()
                where entity.SomeStringProperty.Contains("string to search")
                select entity;

I tried this once and had some unconcentration tracking it in SQL Server
Profiler to confirm it works, so, looked for alternative, but now I confirm
it does.
*Sorry for inconvience everybody.*

Regards,

--
Mohamed Meligy
Information Analyst (.Net Technologies) – Applications Delivery - TDG
Injazat Data Systems
P.O. Box: 8230 Abu Dhabi, UAE.

Phone:  +971 2 6992700
Direct:   +971 2 4045385
Mobile:  +971 50 2623624, +971 55 2017 621

E-mail: [email protected]
Weblog: http://weblogs.asp.net/meligy


On Fri, Oct 30, 2009 at 12:26 PM, Mohamed Meligy <[email protected]>wrote:

> Hey, a quick question I hope it has an easy answer:
>
> *How do you use "LIKE" in a 'WHERE' clause in LINQ to NHibernate or in
> plain NHibernate in general?
> *
>
>
>
> Regards,
>
> --
> Mohamed Meligy
> Information Analyst (.Net Technologies) – Applications Delivery - TDG
> Injazat Data Systems
> P.O. Box: 8230 Abu Dhabi, UAE.
>
> Phone:  +971 2 6992700
> Direct:   +971 2 4045385
> Mobile:  +971 50 2623624, +971 55 2017 621
>
> E-mail: [email protected]
> Weblog: http://weblogs.asp.net/meligy
>

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