我试图为企业库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?
我试图为企业库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?
在您发布命令超时的代码写为:
dbCom.CommandTimeOut
但它应该是:
dbCom.CommandTimeout
如果没有帮助,您可以设置连接超时的
上Open Microsoft.practices.EnterpriseLibrary database with just a connection string