Private property mapping with fluent nhibernate
I am getting exception mapping a private property.This is the situation: I have this in Entity.cs: privat int m_Inactive; and in EntityMap.cs I have : Map(x => Reveal.Property<Entity>("m_Inactive")).ColumnName.("INACTIVE"); But I get this error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Not a member access What could be the reason? Thanks. If you follow the examples on the wiki you'll see that you're supposed to use Map(Reveal.Member<YourEntity>("m_Inactive")) . Looks like in the latest version you're