2010-09-14 54 views
1

我试图为企业库4.1数据访问设置命令超时。我使用下面的代码从数据库中获取命令对象。设置命令企业库4.1数据访问超时?

Dim dbCom as System.Data.Common.DBCommand 
dbCom = dbCon.GetDatabase.GetStoredProcCommand(sprocName, parameters) 
dbCom.CommandTimeOut 'I dont find this property. 

如何设置CommandTimeout?

回答