mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-17 17:41:28 +08:00
Updater 人大金仓 Json 2 sql
This commit is contained in:
@@ -37,7 +37,14 @@ namespace SqlSugar
|
||||
public override KeyValuePair<string, List<SugarParameter>> ToSql()
|
||||
{
|
||||
var result= base.ToSql();
|
||||
return new KeyValuePair<string, List<SugarParameter>>(result.Key.Replace("$PrimaryKey", GetPrimaryKeys().FirstOrDefault()), result.Value);
|
||||
if (GetPrimaryKeys()?.Any() == true)
|
||||
{
|
||||
return new KeyValuePair<string, List<SugarParameter>>(result.Key.Replace("$PrimaryKey", GetPrimaryKeys().FirstOrDefault()), result.Value);
|
||||
}
|
||||
else
|
||||
{
|
||||
return new KeyValuePair<string, List<SugarParameter>>(result.Key.Replace(" returning $PrimaryKey", ""), result.Value);
|
||||
}
|
||||
}
|
||||
|
||||
public override long ExecuteReturnBigIdentity()
|
||||
|
||||
Reference in New Issue
Block a user