.ForTypesThatDeriveFrom<Customer>(autoMap =>
{
autoMap.Component<Address>(p => p.Address, addr =>
{
addr.Map(c => c.Street, "Address");
addr.Map(c => c.State, "Region");
addr.Map(c => c.City, "City");
addr.Map(c => c.Country, "Country");
addr.Map(c => c.PostalCode, "PostalCode");
});
This now results in: NHibernate.MappingException: Duplicate property
mapping of Address found in StructuredWeb.Domain.Business.Customer
at NHibernate.Mapping.PersistentClass.CheckPropertyDuplication()
at NHibernate.Mapping.PersistentClass.Validate(IMapping mapping)
at NHibernate.Mapping.RootClass.Validate(IMapping mapping)
at NHibernate.Cfg.Configuration.Validate()
at NHibernate.Cfg.Configuration.BuildSessionFactory()
at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
If I revert my FNH dll back to my checked in copy I have in my project
my tests will pass again.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---