public void MapsToEnum() { using (ISession s = OpenSession()) { A a = new A(); SessionImpl impl = (SessionImpl)s; IEntityPersister persister = impl.GetEntityPersister(typeof(A).FullName, a); int index = -1; for (int i = 0; i < persister.PropertyNames.Length; i++) { if (persister.PropertyNames[i] == "NullableValue") { index = i; break; } } if (index == -1) { Assert.Fail("Property NullableValue not found."); } Assert.That(persister.PropertyTypes[index], Is.AssignableTo <PersistentEnumType>()); } }