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