mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 19:15:10 +08:00
Update AddSub
This commit is contained in:
parent
e4f34d6cc1
commit
535dd9dbcd
@ -210,7 +210,7 @@ namespace SqlSugar
|
||||
if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
|
||||
{
|
||||
var sqlobj = this.Context.Insertable(insert).AS(tableName).ToSql();
|
||||
id = this.Context.Ado.GetInt(sqlobj.Key+ " "+ this.InsertBuilder.Builder.GetTranslationColumnName(entityInfo.Columns.First(it=>isIdentity).DbColumnName), sqlobj.Value);
|
||||
id = this.Context.Ado.GetInt(sqlobj.Key+ " returning " + this.InsertBuilder.Builder.GetTranslationColumnName(entityInfo.Columns.First(it=>isIdentity).DbColumnName), sqlobj.Value);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user