private static DbParameter GetNextParameter(DbCommand command, int pcount)
{
DbParameter p;
if (pcount < command.Parameters.Count)
{
p = command.Parameters[pcount];
}
else
{
p = command.CreateParameter();
/*if (null == p) {
// CONSIDER: throw exception
}*/
}
Debug.Assert(null != p, "null CreateParameter");
return p;
}