![](/img/trans.png)
[英]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 會將空字符串轉換為 ...