* Fixed depreciated warning in MSSQL Manager

* Added support for user agents in the Userserver UserManager
This commit is contained in:
Adam Frisby
2007-05-20 14:38:25 +00:00
parent b8c4e744f9
commit 60639337bd
2 changed files with 52 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ namespace OpenGrid.Framework.Data.MSSQL
dbcommand.CommandText = sql;
foreach (KeyValuePair<string, string> param in parameters)
{
dbcommand.Parameters.Add(param.Key, param.Value);
dbcommand.Parameters.AddWithValue(param.Key, param.Value);
}
return (IDbCommand)dbcommand;