mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update 达梦
This commit is contained in:
parent
8cc07617d3
commit
f2f254d0cc
@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugar.XuguCoreNew</id>
|
||||
<version>5.1.4.173</version>
|
||||
<version>5.1.4.174</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
@ -183,10 +183,20 @@ namespace SqlSugar
|
||||
{
|
||||
sqlParameter.DmSqlType = DmDbType.Cursor;
|
||||
}
|
||||
if (IsSpOutPutParameter(sqlParameter))
|
||||
{
|
||||
sqlParameter.ParameterName = sqlParameter.ParameterName.Replace("@", ":");
|
||||
}
|
||||
++index;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private bool IsSpOutPutParameter(DmParameter sqlParameter)
|
||||
{
|
||||
return sqlParameter.Direction == ParameterDirection.Output && this.CommandType == CommandType.StoredProcedure;
|
||||
}
|
||||
|
||||
private static string[] KeyWord =new string []{ "@month", ":month", ":day","@day","@group", ":group",":index", "@index", "@order", ":order", "@user", "@level", ":user", ":level",":type","@type", ":year", "@year" };
|
||||
private static string ReplaceKeyWordParameterName(string sql, SugarParameter[] parameters)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user