Skip to content

Commit

Permalink
- 修复 Xugu 参数化 bug;
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Oct 25, 2023
1 parent 4518dc6 commit c9a05f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Providers/FreeSql.Provider.Xugu/XuguUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public override DbParameter AppendParamter(List<DbParameter> _params, string par
{
if (string.IsNullOrEmpty(parameterName)) parameterName = $"p_{_params?.Count}";
if (value != null) value = getParamterValue(type, value);
var ret = new XGParameters { ParameterName = QuoteParamterName(parameterName), Value = value };
var ret = new XGParameters { ParameterName = parameterName, Value = value };

var tp = _orm.CodeFirst.GetDbInfo(type)?.type;
if (col != null)
Expand All @@ -112,7 +112,7 @@ public override DbParameter[] GetDbParamtersByObject(string sql, object obj) =>
Utils.GetDbParamtersByObject<XGParameters>(sql, obj, ":", (name, type, value) =>
{
if (value != null) value = getParamterValue(type, value);
var ret = new XGParameters { ParameterName = $":{name}", Value = value };
var ret = new XGParameters { ParameterName = name, Value = value };

var tp = _orm.CodeFirst.GetDbInfo(type)?.type;

Expand Down

0 comments on commit c9a05f9

Please sign in to comment.