in src/MySqlBindingUtilities.cs [167:184]
public static MySqlCommand BuildCommand(MySqlAttribute attribute, MySqlConnection connection)
{
var command = new MySqlCommand
{
Connection = connection,
CommandText = attribute.CommandText
};
if (attribute.CommandType == CommandType.StoredProcedure)
{
command.CommandType = CommandType.StoredProcedure;
}
else if (attribute.CommandType != CommandType.Text)
{
throw new ArgumentException("The type of the MySQL attribute for an input binding must be either CommandType.Text for a direct MySQL query, or CommandType.StoredProcedure for a stored procedure.");
}
ParseParameters(attribute.Parameters, command);
return command;
}