idbcommand中的commandtimeout? [英] Commandtimeout in idbcommand?
本文介绍了idbcommand中的commandtimeout?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的,
IDbCommand中CommandTimeout的用法是什么?
谢谢。
我尝试过:
Dear all,
What is the usage of CommandTimeout in IDbCommand?
Thanks.
What I have tried:
IDbCommand cmd = DataContext.Database.Connection.CreateCommand();
cmd.CommandText = storedProcedure;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandTimeout = 0;
cmd.ExecuteNonQuery();
推荐答案
在google.com或bing.com上搜索有什么问题? />
这里有一些关于此的文件 -
IDbCommand.CommandTimeout属性(System.Data) [ ^ ]
SqlCommand.CommandTimeout属性(System.Data.SqlClient) [ ^ ]
如果还有一些问题,请告诉我。
谢谢:)
What's issue in searching that in google.com or bing.com?
Here are few documentations regarding this-
IDbCommand.CommandTimeout Property (System.Data)[^]
SqlCommand.CommandTimeout Property (System.Data.SqlClient)[^]
Please let me know if there still some questions.
Thanks :)
Quote:
等待命令执行的时间(以秒为单位)。默认值为30秒。
The time (in seconds) to wait for the command to execute. The default value is 30 seconds.
IDbCommand.CommandTimeout属性(System.Data) [ ^ ]
这篇关于idbcommand中的commandtimeout?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文