This commit is contained in:
2881099
2024-01-21 23:09:55 +08:00
parent cae8c36e84
commit 73c1fd2d6a
2 changed files with 112 additions and 1 deletions

View File

@ -867,7 +867,20 @@ namespace FreeSql.Internal.CommonProvider
#endif
var list = listObj as List<T1>;
if (list == null) return;
if (list == null)
{
if (typeof(T1) == typeof(object))
{
var ilist = listObj as IList;
if (ilist != null)
{
list = new List<T1>();
foreach (var iitem in ilist)
list.Add((T1)iitem);
}
}
if (list == null) return;
}
if (list.Any() == false) return;
if (tbref.Columns.Any() == false) return;