|
135 | 135 | public static string[] AdditionalForeignKeysDataAnnotations; |
136 | 136 | public static string ConfigFilePath; |
137 | 137 | public static Func<string, string, bool, string> TableRename; |
| 138 | + public static Func<string, string, string, string> MappingTableRename; |
138 | 139 | public static Func<StoredProcedure, string> StoredProcedureRename; |
139 | 140 | public static Func<string, StoredProcedure, string> StoredProcedureReturnModelRename; |
140 | 141 | public static Func<Column, Table, Column> UpdateColumn; |
@@ -4133,7 +4134,9 @@ SELECT SERVERPROPERTY('Edition') AS Edition, |
4133 | 4134 | return; |
4134 | 4135 |
|
4135 | 4136 | var leftPropName = leftTable.GetUniqueColumnName(rightTable.NameHumanCase, right, checkForFkNameClashes, false, Relationship.ManyToOne); // relationship from the mapping table to each side is Many-to-One |
| 4137 | + leftPropName = Settings.MappingTableRename(Name, leftTable.NameHumanCase, leftPropName); |
4136 | 4138 | var rightPropName = rightTable.GetUniqueColumnName(leftTable.NameHumanCase, left, checkForFkNameClashes, false, Relationship.ManyToOne); // relationship from the mapping table to each side is Many-to-One |
| 4139 | + rightPropName = Settings.MappingTableRename(Name, rightTable.NameHumanCase, rightPropName); |
4137 | 4140 | leftTable.AddMappingConfiguration(left, right, leftPropName, rightPropName); |
4138 | 4141 |
|
4139 | 4142 | IsMapping = true; |
|
0 commit comments