mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-02 20:02:47 +08:00
Synchronization code
This commit is contained in:
parent
9d1ea999a3
commit
15fd47e9c9
@ -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", "");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user