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
}
///
/// 执行有返回值的存储过程