Try adding Access.Field to your Map call. It shouldn't be necessary, but it's worth a try.
On 9 Sep 2010, at 10:09, acl123 <andrewclawre...@gmail.com> wrote: > All jokes aside, I'm trying to reveal a private member inside a > component like this: > > Component(x => x.Foo, > part => > { > part.Map(x => x.Bar, "FooBar"); > part.Map(Reveal.Member<Foo>("_baz"), "FooBaz") > .Nullable(); > }); > > The mapped component class looks like this: > public class Foo > { > private short? _foo; > public int Bar { get; set; } > } > > I am receiving the error: > > FluentNHibernate.Cfg.FluentConfigurationException : An invalid or > incomplete configuration was used while creating a SessionFactory. > Check PotentialReasons collection, and InnerException for more detail. > > ----> NHibernate.PropertyNotFoundException : Could not find a getter > for property '_baz' in class 'MyNamespace.Foo' > > > This is using Fluent NHibernate 1.1 which I understand handles > revealing private fields. > > Thoughts? > > -- > You received this message because you are subscribed to the Google Groups > "Fluent NHibernate" group. > To post to this group, send email to fluent-nhibern...@googlegroups.com. > To unsubscribe from this group, send email to > fluent-nhibernate+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/fluent-nhibernate?hl=en. > -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.