Whilst SQL Server is perfectly comfortable doing:
where Id like '45%'
(id being an int), NH will complain as it will still try to send the compare value into sql as a SqlParameter of type int when doing:
q.WhereRestrictionOn(cl => cl.CompanyId).IsLike(companyIdFilter)
So how to get round it with the new QueryOver API?