I'd like to escape the queries that nhibernate generates when I use Contains.
I mean, supposing that I'm using SQL Server Contains("%")
, NHibernate should generate like '[%]'
.
I'd like to obtain this without using a different extension method (i.e. implementing and using MyOwnContain).
In this case the answer could be this:
Linq to NHibernate extensibility for custom string query operations?