From 7a33511d6139f89fcd7023dd5cda2c3e50bce590 Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@qq.com> Date: Mon, 19 Apr 2021 04:24:52 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8D=20Ado.CommandFluent=20?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E8=BF=87=E7=A8=8B=E5=8F=82=E6=95=B0=E5=8C=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=9B#739?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FreeSql/Internal/Model/AdoCommandFluent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/FreeSql/Internal/Model/AdoCommandFluent.cs b/FreeSql/Internal/Model/AdoCommandFluent.cs index 3fc66659..8847f84b 100644 --- a/FreeSql/Internal/Model/AdoCommandFluent.cs +++ b/FreeSql/Internal/Model/AdoCommandFluent.cs @@ -60,6 +60,7 @@ namespace FreeSql.Internal.Model public AdoCommandFluent WithParameter(string parameterName, object value, Action modify = null) { var param = this.Ado.GetDbParamtersByObject(new Dictionary { [parameterName] = value }).FirstOrDefault(); + if (CmdType == System.Data.CommandType.StoredProcedure) param.ParameterName = parameterName; //#739 modify?.Invoke(param); this.CmdParameters.Add(param); return this;