From 74989f2270401b7ca79e5ab665caa59969ed3b9e Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 30 Sep 2022 15:55:35 +0800 Subject: [PATCH] Synchronization code --- .../Abstract/DbBindProvider/IDataReaderEntityBuilder.cs | 2 ++ .../SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs index fb97c35d2..2a66aafd8 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs @@ -292,6 +292,8 @@ namespace SqlSugar method = isNullableType ? getConvertByte : getByte; if (bindProperyTypeName.IsContainsIn("int16")) method = isNullableType ? getConvertInt16 : getInt16; + if (bindProperyTypeName == "uint32"&&this.Context.CurrentConnectionConfig.DbType.IsIn(DbType.MySql,DbType.MySqlConnector)) + method = null; break; case CSharpDataType.@bool: if (bindProperyTypeName == "bool" || bindProperyTypeName == "boolean") diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs index 12ed9879f..d8799ef19 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs @@ -2432,10 +2432,10 @@ namespace SqlSugar var groupKv = list.GroupBy(x => pIdProp.GetValue(x).ObjToString()).ToDictionary(k => k.Key, v => v.ToList()); Func> fc = null; - fc = (rootValue) => + fc = (rootVal) => { var finalList = new List(); - if (groupKv.TryGetValue(rootValue, out var nextChildList)) + if (groupKv.TryGetValue(rootVal, out var nextChildList)) { finalList.AddRange(nextChildList); foreach (var child in nextChildList)