为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:8.1.2.192
【操作系统】:centos7
【CPU】:x86
【问题描述】*:.NETCore2.2配置使用达梦,使用net20目录下的驱动,连接串配置好后,将Oracle切到达梦,可以查询,但插入时会报错以下问题:
SimpleUpdate:SimpleUpdate:The given key 'Dm.DmConnection' was not present in the dictionary
加了.net驱动日志也未发现insert语句,驱动日志内容如下
看报错信息可能是没找到对应的DmConnection对象,创建连接对象例子如下,
DmConnection conn = new DmConnection();
conn.ConnectionString = "Server=127.0.0.1:5236; UserId=SYSDBA; PWD=SYSDBA;";