1.ExputEnOnQuess要求当分配给该命令的连接处于挂起的本地事务时,该命令具有事务。命令的事务属性尚未初始化。
ExecuteNonQuery requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
这个错误除了其字面意思未初始化外,还有一种可能为:只更新(增/删/改)了一条数据,其会提示错误,经测试存在该情况,但是未知其原因。