Added a Timeout property to the FolderConfig

Added Command Timeout to each query that did not have a specified timeout
This commit is contained in:
Rich
2017-03-01 15:40:36 +00:00
parent e77a17d645
commit aa40ff017d
8 changed files with 50 additions and 7 deletions

View File

@@ -2251,6 +2251,7 @@ namespace VEPROMS.CSLA.Library
using (SqlCommand cm = cn.CreateCommand())
{
cm.CommandType = CommandType.StoredProcedure;
cm.CommandTimeout = Database.SQLTimeout;
cm.CommandText = "DeleteItemAndChildren";
cm.Parameters.AddWithValue("@ItemID", criteria.ItemID);
cm.Parameters.AddWithValue("@UserID", criteria.UserID);