mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 07:57:33 +08:00
Update 人大金仓
This commit is contained in:
parent
73fd9aec44
commit
163ce81f4f
@ -82,6 +82,11 @@ namespace SqlSugar
|
|||||||
if (GetIdentityKeys().FirstOrDefault() == null)
|
if (GetIdentityKeys().FirstOrDefault() == null)
|
||||||
{
|
{
|
||||||
sql = sql.Replace("returning \"\"", "");
|
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;
|
return sql;
|
||||||
|
Loading…
Reference in New Issue
Block a user