This commit is contained in:
610262374@qq.com
2018-11-20 15:01:07 +08:00
parent 3aafef5bd6
commit ec4c406cf5
2 changed files with 2 additions and 1 deletions

View File

@@ -143,7 +143,7 @@ namespace SqlSugar
{
if (readerValues.Any(it => it.Key.Equals(name, StringComparison.CurrentCultureIgnoreCase)))
{
var addValue = readerValues.ContainsKey(name) ? readerValues[name] : readerValues[name.ToUpper()];
var addValue = readerValues.ContainsKey(name) ? readerValues[name] : readerValues.First(it=>it.Key.Equals(name,StringComparison.CurrentCultureIgnoreCase)).Value;
if (addValue == DBNull.Value)
{
if (item.PropertyType.IsIn(UtilConstants.IntType, UtilConstants.DecType, UtilConstants.DobType, UtilConstants.ByteType))

View File

@@ -19,6 +19,7 @@ namespace SqlSugar
T TranslateCopy<T>(T sourceObject);
SqlSugarClient CopyContext(bool isCopyEvents = false);
dynamic DataTableToDynamic(DataTable table);
List<T> DataTableToList<T>(DataTable table);
ICacheService GetReflectionInoCacheInstance();
void RemoveCacheAll();
void RemoveCacheAll<T>();