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".
错误;求解