Hello I want to generate a sql query with ICriteria interface like that
select * from tableName where (dataColumn like '%2010-06-09%')
I researched in google and I found CONVERT() function to do this:
SELECT * FROM DATE_SAMPLE
WHERE CONVERT(CHAR(10),SAMPLE_DATE,120) = '2003-04-09'
How can I do this in NHibernate wtih ICriteria?