
[英]NHibernate: Is it possible for IUserType to convert a value to null and have it output as IS NULL in the resulting query?
我们使用 NHibernate 作为我们的 ORM。我们有一个表,其中一列有一个自定义 IUserType 映射到它。 IUserType 的用途是根据我们使用的连接类型,该值可能是 null 或只是一个空字符串。 因此,当我们根据底层数据存储运行此查询时,IUserType 会将空字符串转换为 ...