IBatisNet 分布式事务TransactionScope 报错;请教大侠支持

haosa 2013-08-06 02:04:53

public bool Delete(TRegOutDetail regOutDetail, Hashtable table)
{
bool result = false;
try
{
using (TransactionScope trans = new TransactionScope())
{
TRegOutDetailDao dao = new TRegOutDetailDao();
TInventoryDetailDao inventDao = new TInventoryDetailDao();

//删除出库明细数据
dao.FakeDelete(regOutDetail);
//根据库存明细日期修改库存剩余数量
inventDao.UpdateAddOutQty(table);

result = true;
trans.Complete();
}
}
catch (Exception ex)
{
throw ex;
}
return result;
}
Error executing query 'UpdateAddOutQty' for update. Cause: Unable to open connection to "Microsoft SQL Server, provider V2.0.0.0 in framework .NET V2.0".
错误;求解
...全文
300 点赞 收藏 回复
写回复
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
相关推荐
发帖
.NET Framework
创建于2007-09-28

1.7w+

社区成员

.NET技术 .NET Framework
申请成为版主
帖子事件
创建了帖子
2013-08-06 02:04
社区公告
暂无公告