Hi - In SQL Server 2005 it is possible to do a "LIKE" search against a column with an integer type.
For instance, if I do: select * from MyTable where MyIntColumn like '50_0' it will return all the rows where MyIntColumn is 5000, 5010, 5020, .... 5090. Now, when I try to do this using the LIKE criteria I get an exception: Type mismatch in NHibernate.Criterion.SimpleExpression: MyInt expected type System.Int32, actual type System.String My instincts tell me that this is by design, since the ability of SQL Server to do a like search against a numeric type is probably SQL Server specific. Can anyone tell me if there is a work around for this? Kind regards Thomas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
