From ee3e44afb3ec894f36418e3e5659e2072ebb1aed Mon Sep 17 00:00:00 2001
From: falcon <9504402@qq.com>
Date: Thu, 7 Apr 2022 16:19:05 +0800
Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=AD=98=E5=82=A8=E8=BF=87?=
=?UTF-8?q?=E7=A8=8B=E5=8F=82=E6=95=B0=E7=9A=84=E6=96=B9=E6=B3=95=E5=8F=AF?=
=?UTF-8?q?=E4=BB=A5=E8=BF=BD=E5=8A=A0=E5=85=B6=E4=BB=96=E5=8F=82=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs b/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs
index 1b7468b..c312744 100644
--- a/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs
+++ b/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs
@@ -192,10 +192,14 @@ namespace Falcon.SugarApi.DatabaseDefinitions
///
/// 对象类型
/// 参数对象
+ /// 增加其他的参数
/// 参数
- ///
- public SugarParameter[] GetParameters(T data) {
- return this.Ado.GetParameters(data);
+ public SugarParameter[] GetParameters(T data, params SugarParameter[] otherParams) {
+ var result = this.Ado.GetParameters(data).ToList();
+ if (otherParams != null) {
+ result.AddRange(otherParams);
+ }
+ return result.ToArray();
}
#endregion