根据字典插入用最新的5.1.3.47提示不支持,用5.0.9.6版本是好的 返回

SqlSugar 老数据
1 962

根据字典插入用最新的5.1.3.47提示报错:

Parameter type JsonElement is not supported; see https://fl.vu/mysql-param-type. 


参考的代码:


var dc= new Dictionary<string, object>();

            dc.Add("name", "1");

            dc.Add("CreateTime", DateTime.Now);

db.Insertable(dc).AS("student").ExecuteCommand();


,用5.0.9.6版本是好的,不知道是什么原因?

热忱回答(1)