public static List <OSAEScriptProcessor> GetScriptProcessors() { List <OSAEScriptProcessor> scriptProcessors = new List <OSAEScriptProcessor>(); using (MySqlConnection connection = new MySqlConnection(Common.ConnectionString)) { MySqlCommand command = new MySqlCommand("SELECT script_processor_id, script_processor_name, script_processor_plugin_name FROM osae_script_processors", connection); connection.Open(); MySqlDataReader reader = command.ExecuteReader(); while (reader.Read()) { OSAEScriptProcessor scriptProcessor = new OSAEScriptProcessor(); scriptProcessor.ID = reader.GetUInt32("script_processor_id"); scriptProcessor.Name = reader.GetString("script_processor_name"); scriptProcessor.PluginName = reader.GetString("script_processor_plugin_name"); scriptProcessors.Add(scriptProcessor); } } return(scriptProcessors); }
public static List<OSAEScriptProcessor> GetScriptProcessors() { List<OSAEScriptProcessor> scriptProcessors = new List<OSAEScriptProcessor>(); using (MySqlConnection connection = new MySqlConnection(Common.ConnectionString)) { MySqlCommand command = new MySqlCommand("SELECT script_processor_id, script_processor_name, script_processor_plugin_name FROM osae_script_processors", connection); connection.Open(); MySqlDataReader reader = command.ExecuteReader(); while (reader.Read()) { OSAEScriptProcessor scriptProcessor = new OSAEScriptProcessor(); scriptProcessor.ID = reader.GetUInt32("script_processor_id"); scriptProcessor.Name = reader.GetString("script_processor_name"); scriptProcessor.PluginName = reader.GetString("script_processor_plugin_name"); scriptProcessors.Add(scriptProcessor); } } return scriptProcessors; }