mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 13:21:59 +08:00
Update 达梦
This commit is contained in:
@@ -833,7 +833,7 @@ namespace SqlSugar
|
||||
|
||||
if (columns.ToString().Contains("Subqueryable()."))
|
||||
{
|
||||
expResult= expResult.Replace(this.SqlBuilder.GetTranslationColumnName((binaryExp.Left as MemberExpression).Expression+"") +".",this.UpdateBuilder.GetTableNameString.TrimEnd()+".");
|
||||
expResult= expResult.Replace(this.SqlBuilder.GetTranslationColumnName((ExpressionTool.RemoveConvert(binaryExp.Left) as MemberExpression).Expression+"") +".",this.UpdateBuilder.GetTableNameString.TrimEnd()+".");
|
||||
}
|
||||
|
||||
UpdateBuilder.SetValues.Add(new KeyValuePair<string, string>(SqlBuilder.GetTranslationColumnName(key), expResult));
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace SqlSugar
|
||||
public override string ToSqlString()
|
||||
{
|
||||
var result= base.ToSqlString();
|
||||
if (!this.EntityInfo.Columns.Any(it => it.IsIdentity))
|
||||
if (!this.EntityInfo.Columns.Any(it => it.IsIdentity)&& this.IsReturnIdentity==false)
|
||||
{
|
||||
result = result.Replace(";select @@identity", "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user