mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Synchronization code
This commit is contained in:
parent
6988677f0a
commit
54eacb1418
@ -162,7 +162,7 @@ namespace SqlSugar
|
||||
}
|
||||
else
|
||||
{
|
||||
result = Convert.ToInt64(Ado.GetScalar(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray()));
|
||||
result = (Ado.GetScalar(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray())).ObjToLong();
|
||||
}
|
||||
After(sql, result);
|
||||
return result;
|
||||
@ -480,7 +480,7 @@ namespace SqlSugar
|
||||
}
|
||||
else
|
||||
{
|
||||
result = Convert.ToInt64(await Ado.GetScalarAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray()));
|
||||
result = (await Ado.GetScalarAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray())).ObjToLong();
|
||||
}
|
||||
After(sql, result);
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user