Added Command Timeout to each query that did not have a specified timeout
This commit is contained in:
1 parent
b5f4a0751e
commit
32cf8e2f3c
49 files changed
+315
No files matched your search
@@ -299,6 +299,7 @@ namespace VEPROMS.CSLA.Library
|
||||
using (SqlCommand cm = cn.CreateCommand())
|
||||
{
|
||||
cm.CommandType = CommandType.StoredProcedure;
|
||||
cm.CommandTimeout = Database.SQLTimeout;
|
||||
cm.CommandText = "getOwner";
|
||||
cm.Parameters.AddWithValue("@OwnerID", criteria.OwnerID);
|
||||
using (SafeDataReader dr = new SafeDataReader(cm.ExecuteReader()))
|
||||
|
||||
Reference in new issue
Block a user