mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Update Utils
This commit is contained in:
@@ -1170,6 +1170,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
foreach (var item in sqlObj.Value.OrderByDescending(it => it.ParameterName.Length))
|
foreach (var item in sqlObj.Value.OrderByDescending(it => it.ParameterName.Length))
|
||||||
{
|
{
|
||||||
|
if (item.ParameterName.StartsWith(":")&&!result.Contains(item.ParameterName))
|
||||||
|
{
|
||||||
|
item.ParameterName = "@"+item.ParameterName.TrimStart(':');
|
||||||
|
}
|
||||||
if (connectionConfig.MoreSettings == null)
|
if (connectionConfig.MoreSettings == null)
|
||||||
{
|
{
|
||||||
connectionConfig.MoreSettings = new ConnMoreSettings();
|
connectionConfig.MoreSettings = new ConnMoreSettings();
|
||||||
|
Reference in New Issue
Block a user