Hi guys,
after upgrading to release build #538, my JoinedSubClass automapping-
overridings
are not getting considered any more. Here is the code which worked
before:
...
.ForTypesThatDeriveFrom<Actor>(m1 =>
{
m1.HasManyToMany(x => x.Addresses)
.WithTableName(namesToUpperCase
== true ? "ACTORADDRESSES" : "ActorAddresses")
.Cascade.All()
.WithParentKeyColumn
(namesToUpperCase == true ? "ACTORID" : "ActorId")
.WithChildKeyColumn
(namesToUpperCase == true ? "ADDRESSID" : "AddressId");
m1.JoinedSubClass<InvestementBank>
("ActorId",
sub => sub.HasManyToMany(x =>
x.LegalRepresentatives)
.WithTableName
("InvestementBankLegalReprs")
.Cascade.All()
.WithParentKeyColumn
("InvestementBankId")
.WithChildKeyColumn
("LegalRepresentativeId"));
m1.JoinedSubClass<LegalRepresentative>("ActorId",
sub => sub.HasManyToMany(x =>
x.InvestementBanks)
.WithTableName
("InvestementBankLegalReprs")
.Cascade.All()
.Inverse()
.WithParentKeyColumn
("InvestementBankId")
.WithChildKeyColumn
("LegalRepresentativeId"));
})
...
The mapping (ManyToMany) to Addresses works fine, but the 2
JoinedSubclass ManyToMany are not beeing
considered any more.
Any ideas?
Thx,
Darko
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---