Fluent NHibernate mapping nullable enum
问题 I need to map a nullable enum in my class but am getting exceptions. NHibernate.PropertyAccessException: Invalid Cast (check your mapping for property type mismatches); setter of App.Model.Stock ---> System.InvalidCastException: Specified cast is not valid. I have narrowed the issue down to one specific property, which I describe below. This was previously answered here, but the solution links to a page which no longer exists. Here is my code, which I have reduced to contain only the portions