acl123
unread,Sep 9, 2010, 5:09:57 AM9/9/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fluent NHibernate
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?