mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Synchronization code
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user