From 6a0252c7b9d7911f31c5ee75c9df928b5b67edb6 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 19 May 2017 20:48:00 +0800 Subject: [PATCH] - --- SqlSugar/Abstract/AdoProvider/AdoAccessory.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SqlSugar/Abstract/AdoProvider/AdoAccessory.cs b/SqlSugar/Abstract/AdoProvider/AdoAccessory.cs index 123ccf9ab..dec0121cd 100644 --- a/SqlSugar/Abstract/AdoProvider/AdoAccessory.cs +++ b/SqlSugar/Abstract/AdoProvider/AdoAccessory.cs @@ -39,18 +39,18 @@ namespace SqlSugar } - protected virtual SugarParameter[] GetParameters(object obj, PropertyInfo[] propertyInfo,string sqlParameterKeyWord) + protected virtual SugarParameter[] GetParameters(object whereObj, PropertyInfo[] propertyInfo,string sqlParameterKeyWord) { List listParams = new List(); - if (obj != null) + if (whereObj != null) { - var type = obj.GetType(); + var type = whereObj.GetType(); var isDic = type.IsIn(PubConst.DicArraySO, PubConst.DicArraySS); if (isDic) { if (type == PubConst.DicArraySO) { - var newObj = (Dictionary)obj; + var newObj = (Dictionary)whereObj; var pars = newObj.Select(it => new SugarParameter(sqlParameterKeyWord + it.Key, it.Value)); foreach (var par in pars) { @@ -60,7 +60,7 @@ namespace SqlSugar } else { - var newObj = (Dictionary)obj; + var newObj = (Dictionary)whereObj; var pars = newObj.Select(it => new SugarParameter(sqlParameterKeyWord + it.Key, it.Value)); foreach (var par in pars) { @@ -83,7 +83,7 @@ namespace SqlSugar string replaceGuid = Guid.NewGuid().ToString(); foreach (PropertyInfo r in propertiesObj) { - var value = r.GetValue(obj, null); + var value = r.GetValue(whereObj, null); if (r.PropertyType.IsEnum) { value = Convert.ToInt64(value);