mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-09-17 00:45:35 +08:00
排除为 null 的情况
比如第一行 name null,第二行 name "xxx"
This commit is contained in:
@@ -130,7 +130,7 @@ namespace FreeSql.Internal.CommonProvider
|
||||
{
|
||||
foreach (string key in item.Keys)
|
||||
{
|
||||
if (!tempDict.ContainsKey(key))
|
||||
if (!tempDict.ContainsKey(key) && !(item[key] is null))
|
||||
{
|
||||
tempDict[key] = item[key];
|
||||
}
|
||||
|
Reference in New Issue
Block a user