fixing naming strategy #99

This commit is contained in:
Kononnable 2018-10-01 22:19:59 +02:00
parent 20ba034f98
commit d1c02b0605

View File

@ -20,11 +20,8 @@ export class NamingStrategy extends AbstractNamingStrategy {
columnOldName[0].toLowerCase() +
columnOldName.substring(1, columnOldName.length);
if (
columnName
.toLowerCase()
.endsWith(
"id"
) /*&& !ownerEntity.Columns.some(x=>x.tsName==columnName && x.isPrimary)*/
columnName.toLowerCase().endsWith("id") &&
!columnName.toLowerCase().endsWith("guid")
) {
columnName = columnName.substring(
0,