views:

134

answers:

1

Using fluent nhibernate, is it possible to map a private property in a base class?

I have this defined in my base class:

private DateTime? lastModifiedDT { get; set; }

but when I map it like so:

Version(Reveal.Property<EntityType>("lastModifiedDT")).ColumnName("LastModifiedDT");

I get a FluentNHibernate.UnknownPropertyException

+2  A: 

Try making the property protected if you can.

Andrew Hare
That did it. Thanks.
brendanjerwin

related questions