public static FindParameterPlaceholders ( IDbCommand command ) : int[] | ||
command | IDbCommand | The command whose text should be searched for ? characters. |
return | int[] |
public static int[] FindParameterPlaceholders(IDbCommand command)
{
if (command.CommandType != CommandType.Text)
{
throw new ArgumentException("Cannot search for parameter placeholders unless the type of the command is CommandType.Text.");
}
return FindParameterPlaceholders(command.CommandText);
}
SqlUtilities::FindParameterPlaceholders ( string sql ) : int[] |