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); }