fixing naming strategy #99
This commit is contained in:
parent
20ba034f98
commit
d1c02b0605
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user