update pr

This commit is contained in:
2881099
2022-11-16 00:31:40 +08:00
parent e62e05adfd
commit ebd15d09fc
3 changed files with 13 additions and 10 deletions

View File

@ -406,6 +406,18 @@ namespace base_entity
using (IFreeSql client = CreateInstance(@"Driver={Microsoft Access Driver (*.mdb)};DBQ=d:/accdb/2007.accdb", DataType.Odbc))
{
client.Aop.AuditValue += (_, e) =>
{
if (e.Object is Dictionary<string, object> dict)
{
foreach(var key in dict.Keys)
{
var val = dict[key];
if (val == DBNull.Value) dict[key] = null;
}
e.ObjectAuditBreak = true;
}
};
Dictionary<string, object> data = new Dictionary<string, object>();
data.Add("ExpNo", "RSP0950008");
data.Add("SPoint", "RSP0950004");