[fluent-nhib] Re: Automapping class to point to the same table twice

2009-03-05 Thread James Gregory
You'll need to do an override and explicitly set those two relationships to be many to many's. Off the top of my head, use the ForTypesThatDeriveFrom method with City, and call HasManyToMany for both PersonWorks and PersonBirths. You may need to play around with the parameters, possibly explicitly

[fluent-nhib] Re: Automapping class to point to the same table twice

2009-03-05 Thread Miha Necak
Noboy faced an issue like this? I walked through the code and documentation again, but that went nowhere. On 4 mar., 01:11, Miha Necak wrote: > I've noticed that GetForeignKeyName is of type PropertyInfo while > GetForeignKeyNameOfParent is of type System.Type. From that i gather, > i won't be a

[fluent-nhib] Re: Automapping class to point to the same table twice

2009-03-03 Thread Miha Necak
I've noticed that GetForeignKeyName is of type PropertyInfo while GetForeignKeyNameOfParent is of type System.Type. From that i gather, i won't be able to just replace part of a string from GetForeignKeyNameOfParent parameter like i colud with GetForeignKeyName. Is there any special reason for dif