mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 修复 UpdateDict 不支持 SET NULL 的更新;#1257
This commit is contained in:
@ -461,8 +461,10 @@ namespace FreeSql.Internal.CommonProvider
|
||||
var tempDict = new Dictionary<string, object>();
|
||||
foreach (var item in dicType)
|
||||
foreach (string key in item.Keys)
|
||||
if (!tempDict.ContainsKey(key) && !(item[key] is null))
|
||||
tempDict[key] = item[key];
|
||||
{
|
||||
if (!tempDict.ContainsKey(key)) tempDict[key] = item[key];
|
||||
else if (!(item[key] is null)) tempDict[key] = item[key];
|
||||
}
|
||||
UpdateProvider<Dictionary<string, object>>.GetDictionaryTableInfo(tempDict, orm, ref table);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user