Replies: 2 comments
-
跟驱动有关,看 ado.net 用的哪个,其实不报错就会成功。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
数据其实是插入成功成,但是函数返回结果是0,所以在程序里判断不了到底有没有执行成功。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
List datalist=.......
_freeSql.Insert(datalist).ExecuteAffrows()执行后,实际上数据 已经成功插入数据库,但语句执行后返回是0,那么我怎么判断是否插入成功?如果用ExecuteInserted的话返回插入的值来判断,在一定程度增加了开销,毕竟我只想知道有没有插入成功而以
Beta Was this translation helpful? Give feedback.
All reactions