Commit b5c47b4
Fixed RelationshipKeyPairingVisitor - all many-to-one relations with two ends will use the same (single) foreign column name at children table.
Before that fix such relations were mapped this way: "one" side used childtype.Name+"_id", "many" side used referenceToParentProperty.Name+"_id".
It seemed to work just because usually referenceToParent property name is equal to parent's type name.1 parent 2de8d60 commit b5c47b4
File tree
1 file changed
+2
-6
lines changed- src/FluentNHibernate/Visitors
1 file changed
+2
-6
lines changedLines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 17 | + | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
0 commit comments