Hi!
I have a class implementing IUserType, and have mapping files using this class.
I can update, insert and delete mapped objects (using my class as datatype on some properties) to SQL Server with no problem.
I can create a criteria (Expression.Eq for example) to do a search with no problem, if and only if, I don't use any property of the kind of my class.
When I create a criteria to do a search using a property of the kind of my class, for exmple Expression.Eq("my_iusertype_column_name", Datetime.Now), I get a type mismatch exception, it expects a my_iusertype when I'm passing a datetime.
How do I solve this? How do I create a new "my_iusertype"?
Regards,
Julio
|