From 36a829f872b992e6889d81da05175d4d5590ef99 Mon Sep 17 00:00:00 2001
From: falcon <9504402@qq.com>
Date: Fri, 13 Dec 2019 13:25:25 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9EF3.10=E6=94=AF=E6=8C=81?=
=?UTF-8?q?=E6=89=A7=E8=A1=8Csql=E7=9A=84=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Falcon.ModelSP/DataExtend.cs | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Falcon.ModelSP/DataExtend.cs b/Falcon.ModelSP/DataExtend.cs
index 9e1ca78..329be83 100644
--- a/Falcon.ModelSP/DataExtend.cs
+++ b/Falcon.ModelSP/DataExtend.cs
@@ -21,8 +21,13 @@ namespace Falcon.ModelSP
/// 数据上下文
/// 参数数据
public static int RunProcuder(this DbContext db,TPrarmType data) {
- var parms = getParams(data);
- return db.Database.ExecuteSqlCommand(getProcuderName(),parms.ToArray());
+ var parms = getParams(data).ToArray();
+ var pName = getProcuderName();
+#if NETSTANDARD2_1
+ return db.Database.ExecuteSqlRaw(pName,parms);
+#else
+ return db.Database.ExecuteSqlCommand(pName,parms);
+#endif
}
///
/// 执行有返回值的存储过程