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. 亚音速
- 2. 亚音速3
- 3. 指定命令行上的数据库亚音速
- 4. 亚音速收集
- 5. 亚音速2.1:SqlQuery.ExecuteJoinedDataSet()
- 6. 亚音速.Filter()在
- 7. 亚音速版本
- 8. SQLite和亚音速
- 9. 亚音速3 - SimpleRepository
- 10. 亚音速与webservice
- 11. 有谁亚音速3使用亚音速在.net
- 12. 超时powershell命令
- 13. 命令超时| Discord.js
- 14. IQueryable命令超时
- 15. 亚音速和子表
- 16. 许多在亚音速3
- 17. 使用亚音速与vb.net
- 18. 亚音速搜索查询
- 19. 亚音速2.1的错误
- 20. 左亚音速加入3
- 21. 什么是亚音速?
- 22. 亚音速选择MSDB
- 23. 亚音速3的MaxLength为
- 24. 亚音速外部联接
- 25. 亚音速加入问题
- 26. 亚音速主键错误
- 27. 亚音速3.0和LINQ
- 28. 亚音速3交易
- 29. 外加入亚音速3.0
- 30. 使用亚音速交易