Hei -
We are successfully defining measurement classes as components, with
nice namin (automapping).
However, there are multiple properties on the component classes that I
would have ignored.
All properties get mapped, whether I attempt to use
.ForTypesThatDeriveFrom<MeasuredWellDepthCoord>(p => p.IgnoreProperty
(x => x.UnitQuantity))
(the component class)
or
.ForTypesThatDeriveFrom<Wellbore>(p => p.IgnoreProperty(x =>
x.UnitQuantity))
(my class that references MeasuredWellDepthCoord as a property).
To ignore multiple properties, I am cleaning compiling this:
.ForTypesThatDeriveFrom<WellBore>(p =>
{
p.IgnoreProperty(x => x.UnitSymbol);
p.IgnoreProperty(x => x.UnitQuantity);
p.IgnoreProperty(x => x._uomSpecified);
}
)
But as I say, it makes no difference whether I reference the WellBore
or MeasuredWellDepthCoord in .ForTypesThatDeriveFrom, nor does it
make any difference whether I attempt to ignore single or multiple
properties. The ForTypesThatDeriveFrom....IgnoreProperty works well,
except under component circumstances.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---