Ignore column using mapping by code in HNibernate
问题 I'm using mapping by code in NHibernate. I got a class with several properties. One of them is not related to any columns in DB but still has getter and setter. I use ConventionModelMapper not ModelMapper. The first one assumes that all properties are mapped. How i can tell to NHibernate to ignore it? 回答1: Why not map the properties you want and leave the ones not needed to be mapped check this You can manage the persistence of ConventionModelMapper as following: mapper.BeforeMapProperty +=