0
Q
亚音速命令超时
A
回答
1
对于MySQL,你可以在ConnectionString sepecify将CommandTimeout:
<connectionStrings>
<add name="Local" connectionString="Server=localhost;
Database=db;uid=admin;Password=pass;default command timeout=60" />
</connectionStrings>
但SqlServer的,你不能这样做,据我所知。对于SubSonic 2来说,没有简单的方法来实现它。 有在源硬编码的多个命令超时(看看文件SqlDataProvider.cs)
Query.cs
private int commandTimeout = 60;
QueryCommand.cs
/// <summary>
/// Summary for the QueryCommand class
/// </summary>
public class QueryCommand
{
private string _providerName = String.Empty;
private int commandTimeout = 60; // change to whatever you like and recompile
StoredProedure.cs:
private int commandTimeout = 60;
我不知道我是否错过了一些零件,但如果您更改了这些值并重新编译SubSonic你应该没问题。
如果你不想这样做,你使用查询工具,您可以在运行时设置超时时间
cmd.CommandTimeout = 600;
相关问题
- 1. 亚音速3
- 2. 亚音速2.2
- 3. 亚音速
- 4. 指定命令行上的数据库亚音速
- 5. 亚音速3 - SimpleRepository
- 6. 亚音速与webservice
- 7. 亚音速版本
- 8. 亚音速.Filter()在
- 9. 列亚音速2.2
- 10. 亚音速2.1:SqlQuery.ExecuteJoinedDataSet()
- 11. 亚音速收集
- 12. SQLite和亚音速
- 13. 有谁亚音速3使用亚音速在.net
- 14. Vmrun超时命令
- 15. 超时powershell命令
- 16. IQueryable命令超时
- 17. 命令超时| Discord.js
- 18. R:shell命令超时
- 19. 亚音速2.2/2.1的bug
- 20. 亚音速兼容.Net 4.0
- 21. 亚音速生成错误
- 22. 亚音速3的MaxLength为
- 23. 亚音速生成错误
- 24. 左亚音速加入3
- 25. 最新亚音速版本
- 26. 亚音速主键错误
- 27. 许多在亚音速3
- 28. 亚音速支持缓存
- 29. 亚音速表映射
- 30. 问题亚音速3