public static XSafeIntListQuery ( |
||
connDesc | The database connection descriptor. This is used both as /// a key for caching connections/commands as well as for /// getting the actual database connection the first time. | |
transaction | SqlTransaction | The transaction to do this as part of. |
sql | string | The SQL query to execute. |
sqlParams | IEnumerable | A list of objects to use as parameters /// to the SQL statement. The list may be /// null if there are no parameters. |
Результат | IList |
public static IList<int> XSafeIntListQuery(AbstractSqlConnectionDescriptor connDesc,
SqlTransaction transaction, string sql, IEnumerable sqlParams)
{
Hashtable parameters = DbCaches.Hashtables.Get();
XSafeQuery(connDesc, transaction, sql, sqlParams, ReadIntsFromQuery, parameters);
IList<int> retVal = (IList<int>)parameters["results"];
DbCaches.Hashtables.Return(parameters);
return retVal;
}
SqlConnectionUtilities::XSafeIntListQuery ( |