From f576b9ff341a790270bf8fbac75da5a0bce3b1a8 Mon Sep 17 00:00:00 2001
From: falcon <9504402@qq.com>
Date: Fri, 8 Apr 2022 11:06:47 +0800
Subject: [PATCH] =?UTF-8?q?SugarDbContext.GetParameters=E6=96=B9=E6=B3=95?=
=?UTF-8?q?=E5=8F=AF=E4=BB=A5=E4=BC=A0=E5=85=A5null=E5=80=BC=E5=8F=82?=
=?UTF-8?q?=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs b/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs
index 4154946..ddb4ad4 100644
--- a/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs
+++ b/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs
@@ -197,7 +197,7 @@ namespace Falcon.SugarApi.DatabaseDefinitions
/// 增加其他的参数
/// 参数
public SugarParameter[] GetParameters(T data, params SugarParameter[] otherParams) {
- var result = this.Ado.GetParameters(data).ToList();
+ var result = data == null ? new List() : this.Ado.GetParameters(data).ToList();
if (otherParams != null) {
result.AddRange(otherParams);
}