iBatis.Net异步多线程 操作Ibatis报错

            DomSqlMapBuilder builderProduct = new DomSqlMapBuilder();
            sqlMapProduct = builderProduct.Configure("sqlmapProduct.config");

异步调用的时候,没有ibastis上下文信息。

后来添加了   SessionStore
            sqlMapProduct.SessionStore = new HybridWebThreadSessionStore(sqlMapProduct.Id);

代码后,就正常了

猜你喜欢

转载自liyonghui160com.iteye.com/blog/2153003
今日推荐