Browse Source

Synchronization code

pull/31/head
sunkaixuan 2 years ago
parent
commit
8364ea6b1d
  1. 2
      Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/Insertable/PostgreSQLInserttable.cs

2
Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/Insertable/PostgreSQLInserttable.cs

@ -35,7 +35,7 @@ namespace SqlSugar
public override KeyValuePair<string, List<SugarParameter>> ToSql()
{
var result= base.ToSql();
return new KeyValuePair<string, List<SugarParameter>>(result.Key.Replace("$PrimaryKey", GetPrimaryKeys().FirstOrDefault()), result.Value);
return new KeyValuePair<string, List<SugarParameter>>(result.Key.Replace("$PrimaryKey", this.SqlBuilder.GetTranslationColumnName(GetPrimaryKeys().FirstOrDefault())), result.Value);
}
public override long ExecuteReturnBigIdentity()

Loading…
Cancel
Save