private static RemoveExtraParameters ( DbCommand command, int usedParameterCount ) : void | ||
command | DbCommand | |
usedParameterCount | int | |
return | void |
private static void RemoveExtraParameters(DbCommand command, int usedParameterCount)
{
for (int i = command.Parameters.Count - 1; i >= usedParameterCount; --i)
{
command.Parameters.RemoveAt(i);
}
}