Closed siegrainwong closed 5 years ago
declare @names table ([name] nvarchar(30)) insert into @names values (@T_Fortags_0) , (@T_Fortags_1).......
这段Sql能执行成功吗?每句Sql后面加上分号试试。
假设完整的业务链是这样的:插入文章-> 插入Tags 跟 Categories -> 完成。
然后根据你的提示我做了以下尝试:
The connection does not support MultipleActiveResultSets
还有没有可以尝试的方法呢?
@Seanwong933 连接字符串增加 MultipleActiveResultSets=true
异步方法前面统一带上await
谢谢帮助,才知道MultipleActiveResultSets
是连接字符串的东西。
@Seanwong933 方便的话可以提供一下 https://github.com/Smart-Kit/SmartSql/issues/13
@Ahoo-Wang 我是个人开源项目使用的,可能不符合你们的条件,如果可以的话我在开发完毕后再评论上去。
@Ahoo-Wang 我是个人开源项目使用的,可能不符合你们的条件,如果可以的话我在开发完毕后再评论上去。
OK,感谢。
MultipleActiveResultSets
的示例,不知道怎么写。MultipleResultMaps
?那么我的三条语句分布在三个xml里,写到哪里呢?代码:
日志: