mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
Update 人大金仓
This commit is contained in:
@@ -82,6 +82,11 @@ namespace SqlSugar
|
||||
if (GetIdentityKeys().FirstOrDefault() == null)
|
||||
{
|
||||
sql = sql.Replace("returning \"\"", "");
|
||||
var id = this.Context.DbMaintenance.GetIsIdentities(this.Context.EntityMaintenance.GetTableName(this.InsertBuilder.GetTableNameString)).FirstOrDefault();
|
||||
if (id != null)
|
||||
{
|
||||
sql = sql.TrimEnd().TrimEnd(';')+ " returning " + this.SqlBuilder.GetTranslationColumnName(id) ;
|
||||
}
|
||||
}
|
||||
|
||||
return sql;
|
||||
|
Reference in New Issue
Block a user