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:
@@ -6449,6 +6449,7 @@ namespace VEPROMS.CSLA.Library
|
||||
using (SqlCommand cm = cn.CreateCommand())
|
||||
{
|
||||
cm.CommandType = CommandType.StoredProcedure;
|
||||
cm.CommandTimeout = Database.DefaultTimeout;
|
||||
cm.CommandText = "vesp_ListItemAndChildrenByUnit";
|
||||
cm.Parameters.AddWithValue("@ItemID", criteria.ItemID);
|
||||
cm.Parameters.AddWithValue("@ParentID", criteria.ParentID);
|
||||
@@ -6738,6 +6739,7 @@ namespace VEPROMS.CSLA.Library
|
||||
using (SqlCommand cmd = new SqlCommand("vesp_ProcedureTransitionsCount", cn))
|
||||
{
|
||||
cmd.CommandType = CommandType.StoredProcedure;
|
||||
cmd.CommandTimeout = Database.SQLTimeout;
|
||||
cmd.Parameters.AddWithValue("ItemID", _ItemID);
|
||||
_ProcedureTransitionsCount = (int)cmd.ExecuteScalar();
|
||||
}
|
||||
|
Reference in New Issue
Block a user