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